فهرست منبع

bug修复【ID1006964】

chenrui 4 سال پیش
والد
کامیت
824f5b77fa
1فایلهای تغییر یافته به همراه1 افزوده شده و 14 حذف شده
  1. 1 14
      src/views/power/role/menuModal.vue

+ 1 - 14
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,19 +98,6 @@ export default {
         }
       })
     },
-    // 取消
-    handleCancel () {
-      const _this = this
-      this.$confirm({
-        title: '提示',
-        content: '确定取消吗?',
-        centered: true,
-        onOk () {
-          _this.clear()
-          _this.cancel()
-        }
-      })
-    },
     clear () {
       this.form.resetFields()
       this.roleName = ''