Compare commits

..

2 Commits

Author SHA1 Message Date
wuyize fc3dfa7ef4 Merge branch 'main' of http://101.34.228.45:3000/auto/AicsKnowledgeBase into main 2023-07-07 04:58:57 +08:00
wuyize 8044edca44 test 2023-07-07 04:58:51 +08:00
1 changed files with 6 additions and 1 deletions

View File

@ -258,11 +258,16 @@ FluArea {
iconSource: content_page.isFavorite ? FluentIcons.FavoriteStarFill : FluentIcons.FavoriteStar
onClicked: {
content_page.isFavorite = !content_page.isFavorite
console.log(content_page.isFavorite)
content_page.favoriteCount += (content_page.isFavorite ? 1 : -1)
Request.put("knowledge/" + knowledgeFileId + "/star",
JSON.stringify({
"active": content_page.isFavorite
}))
}), response => {
console.log(response)
}, response => {
console.log(response)
})
}
}
FluText {