|
@@ -67,7 +67,9 @@ const menuList = computed(() => store.getters.getCurrentMenu)
|
|
|
const userName = computed(() => store.state.userInfo.s_fullname)
|
|
|
const userRole = computed(() => store.getters.userRole)
|
|
|
const showLogoutModule = computed(() => store.state.isAuthenticated)
|
|
|
-const defaultActiveMenu = computed(() => menuList.value[0]?.path || '/')
|
|
|
+const defaultActiveMenu = computed(() => {
|
|
|
+ return router.currentRoute.value.path || menuList.value[0]?.path || '/'
|
|
|
+})
|
|
|
|
|
|
const doLogout = () => {
|
|
|
router.replace({ name: 'logout' })
|