预览数据结构发送改变,修改结构

This commit is contained in:
SignDawn 2021-03-17 11:41:10 +08:00
parent c01df9971e
commit 622f609149
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export default {
name: 'Preview',
data() {
return {
data: { data: {} },
data: {},
locked: 0,
showTools: true,
};
@ -36,7 +36,7 @@ export default {
if (data) {
this.locked = data.locked;
data.locked = 1;
this.$set(this.data, 'data', Object.assign({}, data));
this.data = Object.assign({}, data);
setTimeout(() => {
window.topologyData = null;
}, 200);