提交 d8923fc0 编写于 作者: zhujiamin's avatar zhujiamin

表单值变更 退出时确认框重复渲染

上级 53710199
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
const bainfo:any = JSON.parse(this.$route.query.bsinfo as string); const bainfo:any = JSON.parse(this.$route.query.bsinfo as string);
Object.assign(this.viewparams,bainfo); Object.assign(this.viewparams,bainfo);
} }
this.$store.commit('changeHasClose',true);
</#assign> </#assign>
<#assign userCloseView> <#assign userCloseView>
let result = await this.cheackChange(); let result = await this.cheackChange();
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
if (view && view.viewdatachange) { if (view && view.viewdatachange) {
const title: any = this.$t('app.tabpage.sureclosetip.title'); const title: any = this.$t('app.tabpage.sureclosetip.title');
const contant: any = this.$t('app.tabpage.sureclosetip.content'); const contant: any = this.$t('app.tabpage.sureclosetip.content');
const result = await this.$notice.confirm(title, contant); const result = await this.$notice.confirm(title, contant, this.$store);
if (result) { if (result) {
this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: false }); this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: false });
return true; return true;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册