add lang=ts
This commit is contained in:
parent
b894769c3d
commit
df51f73395
@ -30,22 +30,16 @@ export default {
|
|||||||
return getToken();
|
return getToken();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted() {
|
||||||
//全局存入当前vue实例
|
//全局存入当前vue实例
|
||||||
window.this = this;
|
(window as any).this = this;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClose() {
|
async handleClose() {
|
||||||
this.$modal
|
await this.$modal.confirm('请记得点击左上角保存按钮,确定关闭设计窗口?').finally(() => (this as any).loading = false);
|
||||||
.confirm('请记得点击左上角保存按钮,确定关闭设计窗口?', '确认关闭')
|
this.visible = false;
|
||||||
.then(() => {
|
// 刷新数据
|
||||||
this.visible = false;
|
this.$emit("handleClose")
|
||||||
// 刷新数据
|
|
||||||
this.$emit("handleClose")
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.loading = false;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user