王士厅

fix: 修改Card2Component无网络进入详情页

... ... @@ -142,6 +142,7 @@ export struct Card2Component {
this.clicked = true;
}
persistentStorage(this.contentDTO.objectId);
// console.log(TAG,'this.contentDTO.objectType', this.contentDTO.objectType)
this.jumpDetail()
})
}
... ... @@ -153,11 +154,13 @@ export struct Card2Component {
MinePageDatasModel.getAssertDetailData(this.contentDTO.relId,this.contentDTO.objectId,this.contentDTO.relType).then((value) => {
if(value == "1"){
ProcessUtils.processPage(this.contentDTO)
}else{
} else {
ToastUtils.shortToast("内容不存在")
}
}).catch((err: Error) => {
console.log(TAG, JSON.stringify(err))
// 网络出小差了进入详情页
ProcessUtils.processPage(this.contentDTO)
})
}
}
... ...