huangxw 4 tygodni temu
rodzic
commit
958fc792bc

+ 1 - 1
src/plant/storage/fresh-goods/add/index.vue

@@ -174,7 +174,7 @@ const submitForm = async () => {
                     });
                     });
                 }, 1500);
                 }, 1500);
             } catch (error) {
             } catch (error) {
-                uni.hideLoading();
+                // uni.hideLoading();
             }
             }
         },
         },
         500,
         500,

+ 2 - 2
src/plant/storage/fresh-goods/info-update/index.vue

@@ -199,7 +199,7 @@ const submitForm = async () => {
             });
             });
             try {
             try {
                 // 这里使用单条入库接口,后端若仍要求 batch,可根据需要包装成数组
                 // 这里使用单条入库接口,后端若仍要求 batch,可根据需要包装成数组
-                const res = await useClientRequest.post('/plt-api/app/storageSeed/edit', form.value);
+                const res = await useClientRequest.post('/plt-api/app/storage/edit', form.value);
                 if (!res || res.code !== 200) return;
                 if (!res || res.code !== 200) return;
                 uni.hideLoading();
                 uni.hideLoading();
                 uni.showToast({
                 uni.showToast({
@@ -214,7 +214,7 @@ const submitForm = async () => {
                     });
                     });
                 }, 1500);
                 }, 1500);
             } catch (error) {
             } catch (error) {
-                uni.hideLoading();
+                // uni.hideLoading();
             }
             }
         },
         },
         500,
         500,