|
@@ -608,18 +608,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
toExit() {
|
|
|
- this.$confirm("是否要保存当前题卡?", "提示", {
|
|
|
- cancelButtonClass: "el-button--danger is-plain",
|
|
|
- confirmButtonClass: "el-button--primary",
|
|
|
- type: "warning"
|
|
|
- })
|
|
|
- .then(async () => {
|
|
|
- await this.toSave();
|
|
|
+ this.$confirm(
|
|
|
+ "请确保当前题卡已经正常保存,确定要退出当前题卡编辑吗?",
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ cancelButtonClass: "el-button--danger is-plain",
|
|
|
+ confirmButtonClass: "el-button--primary",
|
|
|
+ type: "warning"
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
this.goback();
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
- this.goback();
|
|
|
- });
|
|
|
+ .catch(() => {});
|
|
|
}
|
|
|
},
|
|
|
beforeDestroy() {
|