소스 검색

card exit md

zhangjie 4 년 전
부모
커밋
048e49a962
1개의 변경된 파일11개의 추가작업 그리고 10개의 파일을 삭제
  1. 11 10
      src/modules/card/views/CardDesign.vue

+ 11 - 10
src/modules/card/views/CardDesign.vue

@@ -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() {