Xiao_123 11 tháng trước cách đây
mục cha
commit
197b041b42
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      src/layout/company/navBar.vue
  2. 2 2
      src/layout/personal/navBar.vue

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

@@ -75,7 +75,7 @@
 </template>
 
 <script setup>
-import { reactive, ref } from 'vue'
+import { ref } from 'vue'
 import { getToken } from '@/utils/auth'
 import { useUserStore } from '@/store/user'
 import { useLocaleStore } from '@/store/locale'
@@ -116,7 +116,7 @@ const items = ref([
   { title: '切换为求职者', icon: 'mdi-swap-horizontal', change: changeRole },
   { title: '退出登录', icon: 'mdi-logout', change: handleLogout }
 ])
-const baseInfo = reactive(JSON.parse(localStorage.getItem('baseInfo'))) // 人才信息
+const baseInfo = JSON.parse(localStorage.getItem('baseInfo')) // 人才信息
 </script>
 
 <style lang="scss" scoped>

+ 2 - 2
src/layout/personal/navBar.vue

@@ -98,7 +98,7 @@
 </template>
 
 <script setup>
-import { reactive, ref } from 'vue'
+import { ref } from 'vue'
 import { getToken } from '@/utils/auth'
 import { useUserStore } from '@/store/user'
 import { useLocaleStore } from '@/store/locale'
@@ -165,7 +165,7 @@ const items = ref([
   { title: '切换为招聘者', icon: 'mdi-swap-horizontal', change: changeLoginType },
   { title: '退出登录', icon: 'mdi-logout', change: handleLogout }
 ])
-const baseInfo = reactive(JSON.parse(localStorage.getItem('baseInfo'))) // 人才信息
+const baseInfo = JSON.parse(localStorage.getItem('baseInfo')) // 人才信息
 
 const handleLogin = () => {
   router.push({ path: '/login' })