瀏覽代碼

切换为求职者

lifanagju_citu 11 月之前
父節點
當前提交
97ba19059c
共有 4 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      src/layout/company/navBar.vue
  2. 1 0
      src/locales/en.js
  3. 1 0
      src/locales/zh-CN.js
  4. 1 1
      src/views/login/index.vue

+ 1 - 1
src/layout/company/navBar.vue

@@ -114,7 +114,7 @@ const handleLogout = async () => {
 const items = ref([
   // { title: '联系人信息', icon: 'mdi-account-outline', change: () => router.push({ path: '/resume' }) },
   // { title: '账号管理', icon: 'mdi-cog-outline', change: () => router.push({ path: '/personalAccount/accountBinding' }) },
-  // { title: '切换为求职者', icon: 'mdi-swap-horizontal', change: changeRole },
+  // { title: t('setting.switchToJobSeeker'), icon: 'mdi-swap-horizontal', change: router.push({ path: '/login' }) },
   { title: t('setting.logOut'), icon: 'mdi-logout', change: handleLogout }
 ])
 const baseInfo = JSON.parse(localStorage.getItem('baseInfo')) // 人才信息

+ 1 - 0
src/locales/en.js

@@ -170,6 +170,7 @@ export default {
     editPassword: 'Change password',
     privacyPolicySettings: 'Privacy settings',
     logOut: 'Logout',
+    switchToJobSeeker: 'Switch to Job Seeker',
     switchToRecruit: 'Switch to Recruiter'
   }
 }

+ 1 - 0
src/locales/zh-CN.js

@@ -170,6 +170,7 @@ export default {
     editPassword: '修改密码',
     privacyPolicySettings: '隐私设置',
     logOut: '退出登录',
+    switchToJobSeeker: '切换为求职者',
     switchToRecruit: '切换为招聘者'
   }
 }

+ 1 - 1
src/views/login/index.vue

@@ -120,7 +120,7 @@ const handleLogin = async () => {
     if (tab.value === 1) { params = { ...phoneRef.value.loginData }; api = 'handleSmsLogin'}
     else { params = { ...passRef.value.loginData }; api = 'handlePasswordLogin'}
     // 企业登录
-    if (type === 330)  params.enterpriseId = enterpriseId.value
+    if (type === 330)  params.loginType = type; params.enterpriseId = enterpriseId.value
     // await userStore.handlePasswordLogin({ ...passRef.value.loginData, type }) //tab.value === 1
     // await userStore.handleSmsLogin({ ...phoneRef.value.loginData, type })
     await userStore[api](params)