初步完成merchant和admin不同role的展示内容逻辑
This commit is contained in:
@@ -116,7 +116,7 @@ import {
|
||||
import type { TabItem } from '@/layouts/admin/store/adminNavStore.uts'
|
||||
|
||||
import { getComponent } from '@/layouts/admin/router/adminComponentMap.uts'
|
||||
import { hasAdminModuleAccess } from '@/layouts/admin/utils/role.uts'
|
||||
import { hasAdminModuleAccess, refreshAdminRole } from '@/layouts/admin/utils/role.uts'
|
||||
|
||||
const props = defineProps({
|
||||
currentPage: {
|
||||
@@ -389,7 +389,8 @@ function onNotify(): void {
|
||||
|
||||
let resizeTid: any = null
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
await refreshAdminRole()
|
||||
initNavState()
|
||||
if (props.currentPage != '') {
|
||||
openRoute(props.currentPage as string)
|
||||
|
||||
Reference in New Issue
Block a user