huangxw 2 weeks ago
parent
commit
33513e6cde
2 changed files with 2 additions and 1 deletions
  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);
                 const res = await useClientRequest.post('/plt-api/app/base/temp', form.value);
                 uni.hideLoading();
                 uni.hideLoading();
                 if (!res || res !== 200) return;
                 if (!res || res !== 200) return;
-                uni.hideLoading();
                 uni.showToast({
                 uni.showToast({
                     title: '保存成功',
                     title: '保存成功',
                     icon: 'success',
                     icon: 'success',
@@ -220,6 +219,8 @@ const submitForm = async () => {
             try {
             try {
                 const res = await useClientRequest.post('/plt-api/app/base/add', form.value);
                 const res = await useClientRequest.post('/plt-api/app/base/add', form.value);
                 uni.hideLoading();
                 uni.hideLoading();
+                if (!res || res !== 200) return;
+                uni.hideLoading();
                 uni.showToast({
                 uni.showToast({
                     title: '提交成功',
                     title: '提交成功',
                     icon: 'success',
                     icon: 'success',

File diff suppressed because it is too large
+ 0 - 0
stats.html


Some files were not shown because too many files changed in this diff