Skip to content

Commit

Permalink
fix(msg): fix payload type can not restored
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed May 19, 2021
1 parent df7642a commit 45198e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/MsgPublish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 45198e7

Please sign in to comment.