فهرست منبع

清除之前的代码

lifanagju_citu 11 ماه پیش
والد
کامیت
ac85376b15
2فایلهای تغییر یافته به همراه1 افزوده شده و 8 حذف شده
  1. 0 3
      src/layout/personal/navBar.vue
  2. 1 5
      src/router/modules/remaining.js

+ 0 - 3
src/layout/personal/navBar.vue

@@ -102,7 +102,6 @@ import { reactive, ref } from 'vue'
 import { getToken } from '@/utils/auth'
 import { useUserStore } from '@/store/user'
 import { useLocaleStore } from '@/store/locale'
-import { useLoginType } from '@/store/loginType'
 defineOptions({ name: 'personal-navbar' })
 
 defineProps({
@@ -112,7 +111,6 @@ defineProps({
   }
 })
 
-const changeLoginType = useLoginType()
 const localeStore = useLocaleStore()
 const userStore = useUserStore()
 
@@ -132,7 +130,6 @@ const changeRole = () => {
     router.push({ path: '/enterprise/register' })
   } else {
     router.push({ path: '/enterprise/talentPool' })
-    changeLoginType.change(0)
   }
 }
 

+ 1 - 5
src/router/modules/remaining.js

@@ -2,10 +2,6 @@ import personal from './personal'
 import enterprise from './enterprise'
 import recruit from './recruit'
 import Layout from '@/layout'
-// import { useSharedState } from '@/store/sharedState'
-// const sharedState = useSharedState()
-// const loginType = sharedState.loginType
-const loginType = 0
 
 // const type  = 0
 const routeArray = [
@@ -54,7 +50,7 @@ const remainingRouter = [
   },
   {
     path: '',
-    component: loginType === 0 ? Layout : null,
+    component: Layout,
     children: [
       {
         path: '',