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