瀏覽代碼

bug修复【ID1006964】

chenrui 4 年之前
父節點
當前提交
63496f46b5
共有 1 個文件被更改,包括 1 次插入15 次删除
  1. 1 15
      src/views/power/role/menuModal.vue

+ 1 - 15
src/views/power/role/menuModal.vue

@@ -16,7 +16,7 @@
         <a-button type="primary" @click="handleSubmit()" id="menuModal-handleSubmit">
           保存
         </a-button>
-        <a-button :style="{ marginLeft: '8px' }" @click="handleCancel()" id="menuModal-handleCancel">
+        <a-button :style="{ marginLeft: '8px' }" @click="cancel" id="menuModal-handleCancel">
           取消
         </a-button>
       </a-form-item>
@@ -98,20 +98,6 @@ export default {
         }
       })
     },
-    // 取消
-    handleCancel () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确定取消吗?',
-        okText: '确定',
-        cancelText: '取消',
-        onOk () {
-          _this.clear()
-          _this.cancel()
-        }
-      })
-    },
     clear () {
       this.form.resetFields()
       this.roleName = ''