优化backend产品和解决方案

This commit is contained in:
2026-08-20 17:47:47 +08:00
parent 735534c6e6
commit a4f7a97763
14 changed files with 201 additions and 67 deletions
+10 -5
View File
@@ -63,7 +63,7 @@
v-for="module in basicModules"
:key="module.path"
class="module-card"
@click="handleNavigate(module.path)"
@click="handleNavigate(module)"
>
<div class="card-header">
<span class="card-title">{{ module.name }}</span>
@@ -85,7 +85,7 @@
v-for="module in systemModules"
:key="module.path"
class="module-card"
@click="handleNavigate(module.path)"
@click="handleNavigate(module)"
>
<div class="card-header">
<span class="card-title">{{ module.name }}</span>
@@ -107,7 +107,7 @@
v-for="module in uncategorizedModules"
:key="module.path"
class="module-card"
@click="handleNavigate(module.path)"
@click="handleNavigate(module)"
>
<div class="card-header">
<span class="card-title">{{ module.name }}</span>
@@ -222,8 +222,13 @@ const userName = computed(
const userAvatar = computed(() => authStore.user?.avatar || "");
// 处理导航跳转
function handleNavigate(path: string) {
if (path) router.push(path);
function handleNavigate(module: ModuleItem) {
const isWebsiteManagement = module.name === "网站管理" || module.path.startsWith("/apps/cms");
const targetPath = isWebsiteManagement
? "/apps/cms/analytics/content"
: module.path;
if (targetPath) router.push(targetPath);
}
// 刷新菜单