Commit 84e252d4bbb52dc6e236e52cabe97f5dd3d0b3e9

Authored by fengtao
1 parent 0371a523

fix:修改账号管理重复提交问题

... ... @@ -111,6 +111,7 @@
111 111 const getTitle = computed(() => (!unref(isUpdate) ? '新增账号' : '编辑账号'));
112 112
113 113 async function handleSubmit() {
  114 + setModalProps({ confirmLoading: true });
114 115 try {
115 116 const { createMessage } = useMessage();
116 117 if (unref(isUpdate)) {
... ... @@ -133,7 +134,6 @@
133 134 typeof values.accountExpireTime != 'undefined' && values.accountExpireTime != null
134 135 ? values.accountExpireTime.format('YYYY-MM-DD HH:mm:ss')
135 136 : null;
136   - setModalProps({ confirmLoading: true });
137 137 Object.assign(postData, values);
138 138 if (unref(isUpdate)) {
139 139 if (values.email == '') {
... ... @@ -149,7 +149,9 @@
149 149 emit('success');
150 150 createMessage.success(unref(isUpdate) ? '编辑成功' : '新增成功');
151 151 } finally {
152   - setModalProps({ confirmLoading: false });
  152 + setTimeout(() => {
  153 + setModalProps({ confirmLoading: false });
  154 + }, 300);
153 155 }
154 156 }
155 157 return {
... ...