初步完成merchant和admin不同role的展示内容逻辑2
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<view class="layout-root">
|
||||
<view v-if="!isAuthReady" class="auth-loading-overlay" style="flex: 1; display: flex; align-items: center; justify-content: center; height: 100vh; background-color: #f5f5f5;">
|
||||
<text style="color: #666; font-size: 16px;">身份鉴权中...</text>
|
||||
</view>
|
||||
<template v-else>
|
||||
<!-- 统一遮罩层 (复刻 CRMEB: 用于所有 Overlay 状态) -->
|
||||
<view
|
||||
class="mobile-mask"
|
||||
@@ -70,6 +74,7 @@
|
||||
<AdminFooter></AdminFooter>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -131,6 +136,7 @@ const SUB_W = 200
|
||||
|
||||
// 页面加载状态
|
||||
const isPageLoading = ref(false)
|
||||
const isAuthReady = ref(false)
|
||||
|
||||
const hasAccess = computed<boolean>(() => {
|
||||
|
||||
@@ -391,6 +397,7 @@ let resizeTid: any = null
|
||||
|
||||
onMounted(async () => {
|
||||
await refreshAdminRole()
|
||||
isAuthReady.value = true
|
||||
initNavState()
|
||||
if (props.currentPage != '') {
|
||||
openRoute(props.currentPage as string)
|
||||
|
||||
Reference in New Issue
Block a user