huangxw il y a 2 semaines
Parent
commit
33513e6cde
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  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',

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
stats.html


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff