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-05-20 17:01:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1c059f0c52fdf79cb922effec261a475bfa50d3
f1c059f0
1 parent
f32da341
feat: 17492 功能缺陷-【uat】进入精选评论卡,点击点赞,未变成已点赞
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/utils/persistentStorage.ets
sight_harmony/features/wdComponent/src/main/ets/utils/persistentStorage.ets
View file @
f1c059f
...
...
@@ -14,7 +14,8 @@ function persistentStorage(id: string | number, type: 'add' | 'remove' | undefin
}
function hasClicked(id: string | number) {
let clickedIds = AppStorage.get<string>('clickedIds')?.split(',') || [];
let _clickedIds = AppStorage.get<string[]>('clickedIds');
let clickedIds = _clickedIds?.toString()?.split(',') || [];
let index = clickedIds.indexOf(id.toString())
if (index >= 0) return true;
return false;
...
...
Please
register
or
login
to post a comment