feat: 更新清除时机

master
xjs 2025-07-01 13:21:19 +08:00
parent 4be7560d81
commit 26d29fa646
3 changed files with 10 additions and 2 deletions

View File

@ -104,6 +104,11 @@ onBeforeMount(() => {
echart.value.dispose()
}
})
onShow(() => {
userStore.clearWishListId()
userStore.clearWishList()
})
</script>
<style lang="scss" scoped>

View File

@ -118,6 +118,11 @@ const close = () => {
badgeValue.value = 1
show.value = false
}
onShow(() => {
userStore.clearWishListId()
userStore.clearWishList()
})
</script>
<style lang="scss" scoped>

View File

@ -174,8 +174,6 @@ import FilterMajorList from './components/FilterMajorList.vue'
const userStore = useUserStore()
const navigatorBack = () => {
userStore.clearWishListId()
userStore.clearWishList()
uni.navigateBack()
}