|
|
@@ -60,11 +60,15 @@
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
import tool from '@/utils/tool'
|
|
|
import headerIcon from './headerIcon.vue'
|
|
|
+ import { globalStore } from '@/store'
|
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
|
const current = ref([route.path.slice(1)]) // 默认选中“资源中心”
|
|
|
const emit = defineEmits(['onChangeCurrent'])
|
|
|
- const userInfo = tool.data.get('USER_INFO')
|
|
|
+ const store = globalStore()
|
|
|
+ const userInfo = computed(() => {
|
|
|
+ return store.userInfo
|
|
|
+ })
|
|
|
|
|
|
watch(route, (newValue) => {
|
|
|
current.value = []
|