From 45198e7b13c98f15e7704b7d0bc4b0584682262a Mon Sep 17 00:00:00 2001 From: YuShifan <894402575bt@gmail.com> Date: Wed, 19 May 2021 10:50:55 +0800 Subject: [PATCH] fix(msg): fix payload type can not restored --- src/components/MsgPublish.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/MsgPublish.vue b/src/components/MsgPublish.vue index 7f03771ad..7c660ddca 100644 --- a/src/components/MsgPublish.vue +++ b/src/components/MsgPublish.vue @@ -170,6 +170,7 @@ export default class MsgPublish extends Vue { private handleHistoryIndexChange(val: number, lastval: number) { if (lastval !== val && val >= 0 && val < this.payloadsHistory.length) { this.msgRecord = Object.assign(this.msgRecord, this.payloadsHistory[val]) + this.payloadType = this.payloadsHistory[val].payloadType } } @@ -251,6 +252,7 @@ export default class MsgPublish extends Vue { this.headersHistory[this.headersHistory.length - 1], this.payloadsHistory[this.payloadsHistory.length - 1], ) + this.payloadType = this.payloadsHistory[this.historyIndex].payloadType } private created() {