瀏覽代碼

feat: 订阅页面已读优化-无id不请求

cuiyalong 1 年之前
父節點
當前提交
ba9640683f

+ 1 - 1
apps/bigmember_pc/src/components/push-list/PushList.vue

@@ -956,7 +956,7 @@ export default {
     async toDetail(item) {
       const { _id, matchKeys, ca_index } = item
       item.visited = true
-      if (this.vt !== 'q') {
+      if (this.vt !== 'q' && ca_index) {
         try {
           await setSubscribeInfoRead(this.vt, {
             vsid: ca_index,

+ 5 - 0
apps/mobile/src/views/tabbar/Subscribe.vue

@@ -2021,6 +2021,11 @@ export default {
     },
     // 设置标讯已读状态
     async setSubReadStatus (item, callback) {
+      const vsId = item.ca_index
+      if (!vsId) {
+        callback && callback()
+        return
+      }
       try {
         await setUserSubscribeListVisited(this.restfulApiUserTypeWitchVSwitch, {
           vsid: item.ca_index,