refactor: 优化路由组件解析逻辑,更新字典数据注释及注册组件样式

This commit is contained in:
Ray.Hao
2026-01-09 23:08:53 +08:00
parent 6d88b5ee07
commit ca15fa0322
4 changed files with 19 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
<template>
<el-config-provider :locale="locale" :size="size">
<!-- å¼å<EFBFBD>¯æ°´å<EFBFBD>?-->
<!-- 开启水印-->
<el-watermark
:font="{ color: fontColor }"
:content="showWatermark ? watermarkContent : ''"
@@ -30,8 +30,8 @@ const size = computed(() => appStore.size as ComponentSize);
const showWatermark = computed(() => settingsStore.showWatermark);
const watermarkContent = appConfig.name;
// å<EFBFBD>ªæœ‰åœ¨å<EFBFBD>¯ç”?AI 助æ‰ä¸”用户已登录时æ‰<C3A6>显示
// 使用 userInfo 作为å“<EFBFBD>应å¼<EFBFBD>ä¾<EFBFBD>èµï¼Œå½“ç”¨æˆ·é€€å‡ºç™»å½•æ—¶ä¼šè‡ªåŠ¨æ´æ?
// 只有在启<EFBFBD>?AI 助手且用户已登录时才显示
// 使用 userInfo 作为响应式依赖当用户退出登录时会自动更<EFBFBD>?
const enableAiAssistant = computed(() => {
const isEnabled = settingsStore.enableAiAssistant;
const isLoggedIn = userStore.userInfo && Object.keys(userStore.userInfo).length > 0;