huangbin 4 년 전
부모
커밋
b349cee72f
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      src/views/information/custom/compoments/add/setup.ts
  2. 0 1
      src/views/information/goods/list/spot-variety/setup.ts

+ 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;