feat: 更新清除时机
parent
4be7560d81
commit
26d29fa646
|
|
@ -104,6 +104,11 @@ onBeforeMount(() => {
|
|||
echart.value.dispose()
|
||||
}
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
userStore.clearWishListId()
|
||||
userStore.clearWishList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
|
|
@ -118,6 +118,11 @@ const close = () => {
|
|||
badgeValue.value = 1
|
||||
show.value = false
|
||||
}
|
||||
|
||||
onShow(() => {
|
||||
userStore.clearWishListId()
|
||||
userStore.clearWishList()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
|
|
@ -174,8 +174,6 @@ import FilterMajorList from './components/FilterMajorList.vue'
|
|||
const userStore = useUserStore()
|
||||
|
||||
const navigatorBack = () => {
|
||||
userStore.clearWishListId()
|
||||
userStore.clearWishList()
|
||||
uni.navigateBack()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue