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