Commit 9b223baa by 吕海涛

修改bug

parent 0658bb2d
......@@ -343,17 +343,22 @@ export default {
},
saveNotice() {
let that = this;
this.$confirm('存为草稿或发布公告', '提示', {
confirmButtonText: '存为草稿',
cancelButtonText: '发布公告',
type: 'warning'
})
this.$confirm(
"检测到未保存的内容,是否在离开页面前保存修改?",
"确认信息",
{
distinguishCancelAndClose: true,
confirmButtonText: "存为草稿",
cancelButtonText: "发布公告",
type: "warning",
}
)
.then(() => {
that.addNoticeInfo(true);
})
.catch(() => {
that.addNoticeInfo(false);
})
.catch((action) => {
action === "cancel" ? that.addNoticeInfo(false) : "";
});
},
addNoticeInfo(flag) {
let params = this.preParams(flag);
......
......@@ -436,16 +436,21 @@ export default {
},
saveNotice() {
let that = this;
this.$confirm("存为草稿或发布公告", "提示", {
this.$confirm(
"检测到未保存的内容,是否在离开页面前保存修改?",
"确认信息",
{
distinguishCancelAndClose: true,
confirmButtonText: "存为草稿",
cancelButtonText: "发布公告",
type: "warning",
})
}
)
.then(() => {
that.addNoticeInfo(true);
})
.catch(() => {
that.addNoticeInfo(false);
.catch((action) => {
action === "cancel" ? that.addNoticeInfo(false) : "";
});
},
addNoticeInfo(flag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment