@@ -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-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 = ''