li.shaoyi 2 年 前
コミット
07c315ab33

+ 2 - 4
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -95,14 +95,12 @@ const formSubmit = () => {
                 formData.extend_info = JSON.stringify(obj)
 
                 const complete = () => {
+                    loading.value = false
                     ElMessage.success('提交成功,请稍后确认结果')
                     onCancel()
                 }
 
-                const t = setTimeout(() => {
-                    loading.value = false
-                    complete()
-                }, 2000)
+                const t = setTimeout(() => complete(), 2000)
 
                 onSubmit().then(() => complete()).finally(() => {
                     window.clearTimeout(t)

+ 2 - 4
src/packages/pc/views/footer/capital/summary/withdraw/index.vue

@@ -82,14 +82,12 @@ const formSubmit = () => {
             formData.extend_info = JSON.stringify(obj)
             if (formData.CusBankID) {
                 const complete = () => {
+                    loading.value = false
                     ElMessage.success('提交成功,请稍后确认结果')
                     onCancel()
                 }
 
-                const t = setTimeout(() => {
-                    loading.value = false
-                    complete()
-                }, 2000)
+                const t = setTimeout(() => complete(), 2000)
 
                 onSubmit().then(() => complete()).finally(() => {
                     window.clearTimeout(t)