refactor(router): 优化路由配置,隐藏非必要动态路由
Some checks failed
Lint Code / Lint Code (push) Failing after 3m48s
Some checks failed
Lint Code / Lint Code (push) Failing after 3m48s
- mock数据中只返回项目管理和系统管理路由,去除其他动态路由 - 限制自动导入的路由模块,仅包含项目管理、系统管理和剩余路由 - 首页重定向到项目管理首页,隐藏首页菜单链接显示 - 更新首页路由元信息,确保不显示首页链接
This commit is contained in:
@@ -421,61 +421,6 @@ onMounted(() => {
|
||||
|
||||
<template>
|
||||
<div class="project-detail w-full" :style="marginStyle">
|
||||
<!-- 边距设置按钮 -->
|
||||
<el-popover placement="bottom-end" :width="200" trigger="click">
|
||||
<template #reference>
|
||||
<el-button link class="margin-setting-btn" title="边距设置">
|
||||
<component :is="useRenderIcon('ri/layout-line')" />
|
||||
</el-button>
|
||||
</template>
|
||||
<div class="margin-setting-panel">
|
||||
<div class="setting-title">页面边距设置 (px)</div>
|
||||
<div class="setting-item">
|
||||
<span>上边距</span>
|
||||
<el-input-number
|
||||
v-model="marginSettings.top"
|
||||
:min="0"
|
||||
:max="100"
|
||||
size="small"
|
||||
/>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span>右边距</span>
|
||||
<el-input-number
|
||||
v-model="marginSettings.right"
|
||||
:min="0"
|
||||
:max="200"
|
||||
size="small"
|
||||
/>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span>下边距</span>
|
||||
<el-input-number
|
||||
v-model="marginSettings.bottom"
|
||||
:min="0"
|
||||
:max="100"
|
||||
size="small"
|
||||
/>
|
||||
</div>
|
||||
<div class="setting-item">
|
||||
<span>左边距</span>
|
||||
<el-input-number
|
||||
v-model="marginSettings.left"
|
||||
:min="0"
|
||||
:max="200"
|
||||
size="small"
|
||||
/>
|
||||
</div>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="marginSettings = { top: 16, right: 80, bottom: 16, left: 16 }"
|
||||
>
|
||||
恢复默认
|
||||
</el-button>
|
||||
</div>
|
||||
</el-popover>
|
||||
|
||||
<!-- 顶部导航 -->
|
||||
<div class="flex-bc mb-4">
|
||||
<div class="flex items-center gap-3">
|
||||
|
||||
Reference in New Issue
Block a user