From 9d26a892d17e7ccc0de2b6bf1f5e1772ddea49f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=BD=A6=E6=A3=8B?= Date: Tue, 12 Mar 2024 08:37:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpt-vue/projects/vue-admin/src/App.vue | 10 ---------- .../vue-admin/src/components/CustomLayout.vue | 15 +++++++++------ gpt-vue/projects/vue-admin/src/router/menu.ts | 8 ++++---- gpt-vue/projects/vue-admin/vite.config.ts | 14 -------------- 4 files changed, 13 insertions(+), 34 deletions(-) diff --git a/gpt-vue/projects/vue-admin/src/App.vue b/gpt-vue/projects/vue-admin/src/App.vue index 91c68e01..2ff26a30 100644 --- a/gpt-vue/projects/vue-admin/src/App.vue +++ b/gpt-vue/projects/vue-admin/src/App.vue @@ -18,14 +18,4 @@ border-radius: 1px; background: #fafafa; } - -.public-bg { - display: flex; - width: 100vw; - height: 100vh; - align-items: center; - justify-content: center; - background: linear-gradient(133deg, #ffffff 0%, #dde8fe 100%); - overflow: hidden; -} diff --git a/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue b/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue index 28485467..11efb4ff 100644 --- a/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue +++ b/gpt-vue/projects/vue-admin/src/components/CustomLayout.vue @@ -49,11 +49,13 @@ const [visible, setVisible] = useState(false); @@ -125,7 +127,8 @@ const [visible, setVisible] = useState(false); .logout-area { padding: 8px 0; display: flex; - width: 80px; + min-width: 80px; + width: 100%; align-items: center; justify-content: center; } diff --git a/gpt-vue/projects/vue-admin/src/router/menu.ts b/gpt-vue/projects/vue-admin/src/router/menu.ts index c2ee06bb..926dac74 100644 --- a/gpt-vue/projects/vue-admin/src/router/menu.ts +++ b/gpt-vue/projects/vue-admin/src/router/menu.ts @@ -34,7 +34,7 @@ const menu = [ component: () => import("@/views/User/UserContainer.vue"), }, { - path: "/Role", + path: "/role", name: "Role", meta: { title: "角色管理", @@ -43,7 +43,7 @@ const menu = [ component: () => import("@/views/Role/RoleContainer.vue"), }, { - path: "/ChatModel", + path: "/chatModel", name: "ChatModel", meta: { title: "语言模型", @@ -52,7 +52,7 @@ const menu = [ component: () => import("@/views/ChatModel/ChatModelContainer.vue"), }, { - path: "/Product", + path: "/product", name: "Product", meta: { title: "充值产品", @@ -61,7 +61,7 @@ const menu = [ component: () => import("@/views/Product/ProductContainer.vue"), }, { - path: "/ApiKey", + path: "/apiKey", name: "ApiKey", meta: { title: "APIKEY", diff --git a/gpt-vue/projects/vue-admin/vite.config.ts b/gpt-vue/projects/vue-admin/vite.config.ts index 2b6c0f6e..882d98d5 100644 --- a/gpt-vue/projects/vue-admin/vite.config.ts +++ b/gpt-vue/projects/vue-admin/vite.config.ts @@ -31,19 +31,5 @@ export default defineConfig(({ mode }) => { }, }, }, - build: { - rollupOptions: { - output: { - manualChunks: (id) => { - if (id.includes("node_modules")) { - if (id.includes("echats")) return `echats`; - if (id.includes("arco")) return `arco`; - if (id.includes("vue") && !id.includes("arco")) return `vue`; - return `vendor`; - } - }, - }, - }, - }, } })