Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -103,10 +103,10 @@ |
103 | 103 | const getTitle = computed(() => (!unref(isUpdate) ? '新增模板配置' : '编辑模板配置')); |
104 | 104 | |
105 | 105 | async function handleSubmit() { |
106 | + setDrawerProps({ confirmLoading: true }); | |
106 | 107 | try { |
107 | 108 | const values = await validate(); |
108 | 109 | const { createMessage } = useMessage(); |
109 | - setDrawerProps({ confirmLoading: true }); | |
110 | 110 | let config = {}; |
111 | 111 | if (values.messageType === 'PHONE_MESSAGE') { |
112 | 112 | config = { |
... | ... | @@ -129,7 +129,7 @@ |
129 | 129 | emit('success'); |
130 | 130 | createMessage.success(unref(isUpdate) ? updateMessage : saveMessage); |
131 | 131 | } finally { |
132 | - setDrawerProps({ confirmLoading: false }); | |
132 | + // setDrawerProps({ confirmLoading: false }); | |
133 | 133 | } |
134 | 134 | } |
135 | 135 | ... | ... |