Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-09-25 14:19:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bda48e464bd9490901d4ea1f16f3d7dca19d01d
1bda48e4
1 parent
729ff735
fix: 修改Card2Component无网络进入详情页
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card2Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card2Component.ets
View file @
1bda48e
...
...
@@ -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)
})
}
}
...
...
Please
register
or
login
to post a comment