huangxw 2 周之前
父節點
當前提交
33513e6cde
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/plant/base/base-edit/models/base-info/base-info.vue
  2. 0 0
      stats.html

+ 2 - 1
src/plant/base/base-edit/models/base-info/base-info.vue

@@ -186,7 +186,6 @@ const saveBaseInfo = async () => {
                 const res = await useClientRequest.post('/plt-api/app/base/temp', form.value);
                 uni.hideLoading();
                 if (!res || res !== 200) return;
-                uni.hideLoading();
                 uni.showToast({
                     title: '保存成功',
                     icon: 'success',
@@ -220,6 +219,8 @@ const submitForm = async () => {
             try {
                 const res = await useClientRequest.post('/plt-api/app/base/add', form.value);
                 uni.hideLoading();
+                if (!res || res !== 200) return;
+                uni.hideLoading();
                 uni.showToast({
                     title: '提交成功',
                     icon: 'success',

文件差異過大導致無法顯示
+ 0 - 0
stats.html


部分文件因文件數量過多而無法顯示