huangbin 4 gadi atpakaļ
vecāks
revīzija
b349cee72f

+ 2 - 3
src/views/information/custom/compoments/add/setup.ts

@@ -51,13 +51,12 @@ export function initFormState(): FormState {
 export function handleApply() {
     const loading = ref<boolean>(false);
     function applyAction(param: AddUserInfoApplyReq) {
+        loading.value = true;
         QueryAddUserInfoApply(param).then(res => {
             console.log('res', res);
-            loading.value = true;
         }).catch(err => {
-            loading.value = false;
             message.error(err)
-        })
+        }).finally(() => loading.value = false)
     }
     return { loading, applyAction }
 }

+ 0 - 1
src/views/information/goods/list/spot-variety/setup.ts

@@ -10,7 +10,6 @@ export function handleDG() {
     const loading = ref<boolean>(false);
     const deliveryGoodsList = ref<ErmcpDeliveryGoodsDetailEx[]>([])
     function queryDG(param?: number) {
-        debugger
         loading.value = true;
         QueryDeliveryGoodsDetail(param).then(res => {
             deliveryGoodsList.value = res;