|
@@ -107,7 +107,7 @@ const itemList = [
|
|
|
const defaultList = [
|
|
|
{ title: '在线简历', path: '/pagesA/resumeOnline/index' },
|
|
|
{ title: '附件简历', path: '/pagesA/resume/index' },
|
|
|
- { title: '学生专区', path: '/pagesA/student/index', key: 'student', hide: true },
|
|
|
+ { title: '学生专区', path: '/pagesA/student/index', key: 'student', defaultHide: true },
|
|
|
{ title: '面试管理', path: '/pagesA/interview/index' },
|
|
|
{ title: '会员套餐', path: '/pagesA/vipPackage/index' },
|
|
|
{ title: '我的分享码', path: '/pagesB/sharePoster/index' },
|
|
@@ -117,15 +117,16 @@ const defaultList = [
|
|
|
{ title: '联系我们', path: '/pagesB/contactUs/index' },
|
|
|
{ title: '协议中心', path: '/pagesB/agreement/index', open: true }
|
|
|
]
|
|
|
-const list = ref(defaultList.filter(e => !e.hide))
|
|
|
+const list = ref(defaultList.filter(e => !e.defaultHide))
|
|
|
|
|
|
watch(
|
|
|
() => baseInfo.value,
|
|
|
(newVal) => {
|
|
|
if (newVal) {
|
|
|
- list.value = defaultList.map(e => {
|
|
|
- if (e?.key === 'student' && newVal.type === '1') e.hide = false // 学生信息管理。 type:0是求职者,1是学生
|
|
|
- return e.hide ? null : e
|
|
|
+ list.value = defaultList.map(e => { // 不改变原数组,退出登录需要重置菜单
|
|
|
+ let hide = e.defaultHide
|
|
|
+ if (e?.key === 'student' && newVal.type === '1') hide = false // 学生信息管理。 type:0是求职者,1是学生
|
|
|
+ return hide ? null : e
|
|
|
}).filter(Boolean)
|
|
|
}
|
|
|
},
|
|
@@ -312,6 +313,7 @@ const handleLogoutClose = () => {
|
|
|
popup.value.close()
|
|
|
}
|
|
|
const handleLogoutConfirm = () => {
|
|
|
+ list.value = defaultList.filter(e => !e.hide) // 重置菜单
|
|
|
useUserStore.handleLogout()
|
|
|
}
|
|
|
</script>
|