no message

This commit is contained in:
A1300399510
2024-01-04 11:12:34 +08:00
parent 2ddfc65699
commit 8a9fae693c
51 changed files with 632 additions and 604 deletions

View File

@@ -128,8 +128,16 @@ const getPublish = () => {
.finally(() => (publisloading.value = false))
}
// 切换
const cutMy = key => {
// 切换 isEmpty 是否清空收藏数据, 因为不确定用户是否有新收藏
const cutMy = (key, isEmpty) => {
if (isEmpty) {
collectList = []
collectPage = 1
collectCount.value = 0
}
console.log("key", key, "collectList", collectList)
console.log(key == "collect" && collectList.length == 0)
if (key == "collect" && collectList.length == 0) getCollect()
else if (key == "mj" && publishList.length == 0) getPublish()
@@ -191,7 +199,7 @@ const goDetails = uniqid => {
}
// router.replace(`/details/${uniqid}`)
goToURL(`/details/${uniqid}`)
goToURL(`/details/${uniqid}`, false)
show.value = false
MyPopupState.value = ""
}