Parcourir la source

修改基地信息页面

huangxw il y a 2 semaines
Parent
commit
6ab52440f8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/plant/base/base-edit/index.vue

+ 2 - 2
src/plant/base/base-edit/index.vue

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