浏览代码

fix🐛: api修复窗口点击x不能关闭的问题

zhangwenjian 3 年之前
父节点
当前提交
fff1772c8c
共有 1 个文件被更改,包括 4 次插入15 次删除
  1. 4 15
      src/views/admin/sys-api/index.vue

+ 4 - 15
src/views/admin/sys-api/index.vue

@@ -272,21 +272,10 @@ export default {
   },
   methods: {
     handleClose(done) {
-      // if (this.loading) {
-      //   return
-      // }
-      // this.$confirm('需要提交表单吗?')
-      //   .then(_ => {
-      //     this.loading = true
-      //     this.timer = setTimeout(() => {
-      //       done()
-      //       // 动画关闭需要一定的时间
-      //       setTimeout(() => {
-      //         this.loading = false
-      //       }, 400)
-      //     }, 2000)
-      //   })
-      //   .catch(_ => {})
+      if (this.loading) {
+        return
+      }
+      done()
     },
     /** 查询参数列表 */
     getList() {