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