Browse Source

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com 4 years ago
parent
commit
e99526b677
1 changed files with 1 additions and 15 deletions
  1. 1 15
      src/views/tenants/tenantsModal.vue

+ 1 - 15
src/views/tenants/tenantsModal.vue

@@ -122,7 +122,7 @@
         </a-row>
         <a-form-item :wrapper-col="{ span: 24, offset: 10 }">
           <a-button type="primary" @click="handleSubmit()">保存</a-button>
-          <a-button :style="{ marginLeft: '8px' }" @click="handleCancel()">取消</a-button>
+          <a-button :style="{ marginLeft: '8px' }" @click="cancel()">取消</a-button>
         </a-form-item>
       </a-form>
     </a-modal>
@@ -349,20 +349,6 @@ export default {
         }
       })
     },
-    // 取消
-    handleCancel () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确定取消吗?',
-        okText: '确定',
-        cancelText: '取消',
-        onOk () {
-          _this.clear()
-          _this.cancel()
-        }
-      })
-    },
     clear () {
       this.form.resetFields()
       this.pageInit()