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 @@
-
-
+
(() => {
- let topArr = store.curUserMenuList.filter(x => x.isBottom !== true).sort((a, b) => a.orderNum - b.orderNum);
- let bottomArr = store.curUserMenuList.filter(x => x.isBottom === true).sort((a, b) => a.orderNum - b.orderNum);
- // 「设置」一级入口走前台硬编码补位(路径 A,不动后端菜单表);
- // 若后台菜单表已配置同 url 的项则不重复追加,避免双入口
- if (!store.curUserMenuList.some(x => x.url === "/settings")) {
- bottomArr = [...bottomArr, SETTINGS_MENU_ITEM];
- }
+ const topArr = store.curUserMenuList.filter(x => x.isBottom !== true).sort((a, b) => a.orderNum - b.orderNum);
+ const bottomArr = store.curUserMenuList.filter(x => x.isBottom === true).sort((a, b) => a.orderNum - b.orderNum);
return [...topArr, ...bottomArr];
});
@@ -216,14 +200,6 @@ async function linkPage(item: any, index: number) {
bottom: 8px;
left: 5px;
}
- li.menu-sep {
- width: 36px;
- height: 1px;
- margin: 6px auto;
- padding: 0;
- background: rgba(255, 255, 255, 0.22);
- pointer-events: none;
- }
li:hover {
background-color: rgba(255, 255, 255, 0.15);
}
diff --git a/src/views/Settings.vue b/src/views/Settings.vue
index fbe3a2d..4831424 100644
--- a/src/views/Settings.vue
+++ b/src/views/Settings.vue
@@ -424,12 +424,15 @@ function openBackend() {