add lang=ts

This commit is contained in:
LiuHao 2023-06-13 22:37:23 +08:00
parent b894769c3d
commit df51f73395

View File

@ -30,22 +30,16 @@ export default {
return getToken();
}
},
mounted(){
//vue
window.this = this;
mounted() {
//vue
(window as any).this = this;
},
methods: {
handleClose() {
this.$modal
.confirm('请记得点击左上角保存按钮,确定关闭设计窗口?', '确认关闭')
.then(() => {
this.visible = false;
//
this.$emit("handleClose")
})
.finally(() => {
this.loading = false;
});
async handleClose() {
await this.$modal.confirm('请记得点击左上角保存按钮,确定关闭设计窗口?').finally(() => (this as any).loading = false);
this.visible = false;
//
this.$emit("handleClose")
}
}
};