From e8cd62f86b80619478cd0dfbcee65cfd382f557a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Fri, 10 Oct 2025 13:26:58 +0800
Subject: [PATCH] =?UTF-8?q?feat(cms):=E4=BC=98=E5=8C=96=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E7=95=8C=E9=9D=A2=E5=8A=9F=E8=83=BD=E5=B8=83?=
=?UTF-8?q?=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 调整按钮布局,将模型管理和清除缓存按钮移至显眼位置
- 添加展开/折叠按钮的图标和状态切换逻辑- 增加备份和恢复功能按钮,仅超级管理员可见- 移除重复的模型管理和清除缓存按钮
- 引入新的图标组件支持展开/折叠操作- 删除未使用的页面组件引用
- 更新开发环境配置,注释本地API地址
---
.env.development | 2 +-
.../cms/cmsNavigation/components/search.vue | 18 +++----
src/views/cms/cmsNavigation/index.vue | 51 +++++++++++--------
3 files changed, 40 insertions(+), 31 deletions(-)
diff --git a/.env.development b/.env.development
index fbcc74b..b8ccd8b 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境)
-VITE_API_URL=http://127.0.0.1:9200/api
+#VITE_API_URL=http://127.0.0.1:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api
diff --git a/src/views/cms/cmsNavigation/components/search.vue b/src/views/cms/cmsNavigation/components/search.vue
index 23ce964..259696d 100644
--- a/src/views/cms/cmsNavigation/components/search.vue
+++ b/src/views/cms/cmsNavigation/components/search.vue
@@ -1,7 +1,7 @@
-
+
@@ -13,6 +13,13 @@
折叠
+ 模型管理
+
+
+ 清除缓存
+
顶部
@@ -41,15 +48,6 @@
@search="reload"
@pressEnter="reload"
/>
- 模型管理
-
-
- 清除缓存
-
diff --git a/src/views/cms/cmsNavigation/index.vue b/src/views/cms/cmsNavigation/index.vue
index 61580f3..6ec725b 100644
--- a/src/views/cms/cmsNavigation/index.vue
+++ b/src/views/cms/cmsNavigation/index.vue
@@ -22,17 +22,39 @@
>
-
+
-
+
新建
-
- 展开
-
-
- 折叠
+
+
+
+
+
+ 展开
+
+
+
+
+
+
+
+ 折叠
+
+
+
+ 备份
+ 恢复
+ 模型管理
+
+
+ 清除缓存
@@ -40,7 +62,6 @@
底部
不限
-
- 模型管理
-
-
- 清除缓存
-
@@ -218,7 +230,7 @@