|
@@ -30,7 +30,8 @@ const useUserStore = userStore()
|
|
|
|
|
|
// 监听登录状态
|
|
|
watch(() => useUserStore.refreshToken, (newVal, oldVal) => {
|
|
|
- recommendCount(Boolean(newVal))
|
|
|
+ const reset = Boolean(!newVal)
|
|
|
+ recommendCount(reset)
|
|
|
})
|
|
|
|
|
|
onShow(() => {
|
|
@@ -45,7 +46,7 @@ const handleTo = (item) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-async function recommendCount (refreshToken) {
|
|
|
+async function recommendCount (reset = false) {
|
|
|
try {
|
|
|
const { data: dict } = await getDict('menduner_hire_job_cv_status')
|
|
|
if (!dict?.data) {
|
|
@@ -58,7 +59,7 @@ async function recommendCount (refreshToken) {
|
|
|
}
|
|
|
})
|
|
|
// console.log(items)
|
|
|
- if (!refreshToken) {
|
|
|
+ if (reset) {
|
|
|
return
|
|
|
}
|
|
|
const { data } = await getRecommendCount()
|