瀏覽代碼

更新成功

zweizhao 7 年之前
父節點
當前提交
9c30e51fcf
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      pages/main/index/cert_edit.vue

+ 7 - 1
pages/main/index/cert_edit.vue

@@ -162,7 +162,13 @@ export default {
 
     },
     clickCancel() {
-      this.$router.go(-1)
+      this.$confirm('确认不保存已修改内容吗?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$router.go(-1)
+      }).catch(() => {})
     },
     /**
      * 重置