bd 3 lat temu
rodzic
commit
c0046960a0
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/views/cygx/raiReportDtl.vue

+ 1 - 3
src/views/cygx/raiReportDtl.vue

@@ -233,12 +233,10 @@ const collectHandle = () => {
   }).then((res) => {
     if (res.Ret === 200) {
       state.reportInfo.IsCollect = !state.reportInfo.IsCollect;
-      if (state.reportInfo.IsCollection == 1) {
+      if (res.Data.Status == 1) {
         state.reportInfo.CollectionNum -= 1;
-        state.reportInfo.IsCollection = 0;
       } else {
         state.reportInfo.CollectionNum += 1;
-        state.reportInfo.IsCollection = 1;
       }
       Toast(res.Msg);
     }