解决Bug
This commit is contained in:
@@ -1,24 +1,43 @@
|
||||
<template>
|
||||
<!-- 管理后台入口:直接加载 AdminLayout,使用 CRMEB 内部路由系统 -->
|
||||
<AdminLayout />
|
||||
<view class="admin-home-page">
|
||||
<AdminLayout>
|
||||
<view class="home-content">
|
||||
<text class="welcome-text">管理后台首页</text>
|
||||
</view>
|
||||
</AdminLayout>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
/**
|
||||
* 管理后台入口页面
|
||||
*
|
||||
* 架构说明:
|
||||
* 1. 此页面是 pages.json 中配置的主入口
|
||||
* 2. 直接加载 AdminLayout 组件作为容器
|
||||
* 3. AdminLayout 内部使用 CRMEB 路由系统管理所有子页面
|
||||
* 4. 不需要额外的业务逻辑,保持简洁
|
||||
*
|
||||
* 路由流程:
|
||||
* pages.json → homePage/index.uvue → AdminLayout → 内部路由切换
|
||||
*/
|
||||
import AdminLayout from '@/layouts/admin/AdminLayout.uvue'
|
||||
import { ref } from 'vue'
|
||||
import AdminLayout from '@/layouts/admin/AdminLayout'
|
||||
|
||||
const title = ref<string>('管理后台首页')
|
||||
|
||||
onLoad((options: OnLoadOptions) => {
|
||||
console.log('首页加载完成')
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
console.log('首页显示')
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 无需额外样式,完全由 AdminLayout 控制布局 */
|
||||
<style scoped lang="scss">
|
||||
.admin-home-page {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.home-content {
|
||||
padding: 20px;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
.welcome-text {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user