bd 3 년 전
부모
커밋
c0046960a0
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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);
     }