完善页面7

This commit is contained in:
2026-02-13 01:52:47 +08:00
parent da1075b9e9
commit f814db2f12
4 changed files with 799 additions and 89 deletions

View File

@@ -63,7 +63,8 @@
<!-- 内容展示区 (内部路由渲染) -->
<view class="content-scroll">
<view class="content-inner" :class="{ 'is-mobile': isMobile }">
<component :is="currentComponent" v-if="!isPageLoading" />
<slot></slot>
<component :is="currentComponent" v-if="!isPageLoading && currentComponent != null" />
<AdminPageLoading v-if="isPageLoading" />
</view>
<AdminFooter />
@@ -116,6 +117,13 @@ import type { TabItem } from '@/layouts/admin/store/adminNavStore.uts'
import { getComponent } from '@/layouts/admin/router/adminComponentMap.uts'
const props = defineProps({
currentPage: {
type: String,
default: ''
}
})
// 侧边栏宽度配置 (CRMEB 1:1)
const ASIDE_W = 70
const SUB_W = 200
@@ -374,6 +382,9 @@ let resizeTid: any = null
onMounted(() => {
initNavState()
if (props.currentPage != '') {
openRoute(props.currentPage as string)
}
// 初始化窗口宽度
windowWidth.value = uni.getWindowInfo().windowWidth