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(); 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;
});
} }
} }
}; };