From e91ce144089dd0f4d56b7618b4586fa696ef16db Mon Sep 17 00:00:00 2001 From: chenxing Date: Wed, 30 Sep 2026 12:18:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(msgcenter,settings):=20=E7=95=99=E7=99=BD?= =?UTF-8?q?=E5=AF=B9=E9=BD=90=E4=B8=8E=E5=B7=A6=E4=BE=A7=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=8C=96=E2=80=94=E2=80=94/msg=E3=80=81/sett?= =?UTF-8?q?ings=20=E5=A3=B3=E5=B1=82=20padding=2015px=E3=80=81msg-side=202?= =?UTF-8?q?16px=E3=80=81sys=20pane=20:deep=20=E6=8A=B9=E5=B9=B3=E3=80=81Le?= =?UTF-8?q?ftMenu=20=E7=A7=BB=E9=99=A4=E7=A1=AC=E7=BC=96=E7=A0=81=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E3=80=81=E8=8F=9C=E5=8D=95=E5=9B=BE=E6=A0=87=20fill?= =?UTF-8?q?=20=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- src/assets/icons/menu-msg.svg | 1 + src/assets/icons/menu-settings.svg | 2 +- src/components/LeftMenu.vue | 32 ++++-------------------------- src/views/Settings.vue | 13 ++++++++++-- src/views/msg/index.vue | 10 ++++++---- 6 files changed, 24 insertions(+), 36 deletions(-) create mode 100644 src/assets/icons/menu-msg.svg diff --git a/src/App.vue b/src/App.vue index 7282c4b..5621c7f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -113,7 +113,7 @@ async function loadUserMenuBarList() { } else { findIndex = menuList.findIndex(x => x.url === route.path); } - // /msg、/settings 是前台硬编码路由(不在后台菜单表里),直达/刷新不应被弹回桌面 + // /msg、/settings 由后台「边栏设置」配置后即进入菜单表;未配置时也允许直达/刷新,不被弹回桌面 if (findIndex === -1 && !["/msg", "/settings"].includes(route.path)) router.push({ name: "index" }); } diff --git a/src/assets/icons/menu-msg.svg b/src/assets/icons/menu-msg.svg new file mode 100644 index 0000000..8d5c190 --- /dev/null +++ b/src/assets/icons/menu-msg.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/menu-settings.svg b/src/assets/icons/menu-settings.svg index 2d63f0b..1f2c7c6 100644 --- a/src/assets/icons/menu-settings.svg +++ b/src/assets/icons/menu-settings.svg @@ -1 +1 @@ - + \ No newline at end of file diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 4cb695b..740a06c 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -5,14 +5,13 @@