|
@@ -129,12 +129,6 @@ const handleLogout = async () => {
|
|
|
const enterpriseList = ref([])
|
|
|
|
|
|
const menuList = ref([
|
|
|
- // { title: t('enterprise.account.myAccount'), icon: 'mdi-account', change: () => router.push({ path: '/recruit/enterprise/memberCenter/myAccount' }) },
|
|
|
- // { title: t('vipPackage.purchasePackage'), icon: 'mdi-gift-outline', change: () => window.open('/recruit/enterprise/purchasePackage') },
|
|
|
- // { title: t('enterprise.personalInformationSettings'), icon: 'mdi-account-cog', change: () => router.push({ path: '/recruit/enterprise/staffInfoSetting' }) },
|
|
|
- // { title: t('setting.switchToOtherCompany'), icon: 'mdi-home-switch', hidden: enterpriseList.value?.length < 2, change: () => handleSwitchToAnotherEnterprise },
|
|
|
- // { title: t('enterprise.registeringNewEnterprise'), icon: 'mdi-home-plus-outline', change: () => handleRegisteringNewEnterprise },
|
|
|
- // { title: t('setting.switchToJobSeeker'), icon: 'mdi-swap-horizontal', change: handleLogout },
|
|
|
{ title: t('setting.logOut'), icon: 'mdi-logout', change: handleLogout }
|
|
|
])
|
|
|
const items = computed(() => {
|
|
@@ -146,8 +140,8 @@ let baseInfo = ref(JSON.parse(localStorage.getItem('entBaseInfo')) || {})
|
|
|
let enterpriseUserAccount = ref(JSON.parse(localStorage.getItem('enterpriseUserAccount')) || {}) // 账户信息
|
|
|
|
|
|
userStore.$subscribe((mutation, state) => {
|
|
|
- baseInfo.value = state.baseInfo
|
|
|
- enterpriseUserAccount.value = state.enterpriseUserAccount
|
|
|
+ if (Object.keys(state.baseInfo).length) baseInfo.value = state.entBaseInfo
|
|
|
+ if (Object.keys(state.enterpriseUserAccount).length) enterpriseUserAccount.value = state.enterpriseUserAccount
|
|
|
})
|
|
|
|
|
|
// 语言切换
|