Преглед на файлове

feat: 调整接口成功提示

zhangyuhan преди 1 година
родител
ревизия
5ec18c1ba4
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 3 1
      apps/bigmember_pc/src/composables/quick-monitor/use/ent.js
  2. 3 1
      apps/bigmember_pc/src/composables/quick-monitor/use/porject.js

+ 3 - 1
apps/bigmember_pc/src/composables/quick-monitor/use/ent.js

@@ -192,7 +192,9 @@ function useEntQuickMonitorModel({ type, id }) {
       case 'doRemoveFollow':
         doCloseDialog()
         doChange().then((res) => {
-          that.$toast(res.msg)
+          if (!res.success) {
+            that.$toast(res.msg)
+          }
         })
         break
       case 'cancel':

+ 3 - 1
apps/bigmember_pc/src/composables/quick-monitor/use/porject.js

@@ -192,7 +192,9 @@ function useProjectQuickMonitorModel({ type, id }) {
       case 'doRemoveFollow':
         doCloseDialog()
         doChange().then((res) => {
-          that.$toast(res.msg)
+          if (!res.success) {
+            that.$toast(res.msg)
+          }
         })
         break
       case 'cancel':