huangxw 2 minggu lalu
induk
melakukan
33513e6cde
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  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',

File diff ditekan karena terlalu besar
+ 0 - 0
stats.html


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini