refactor(ui): 调整

This commit is contained in:
廖彦棋 2024-03-12 08:37:27 +08:00
parent 32368caf1b
commit 9d26a892d1
4 changed files with 13 additions and 34 deletions

View File

@ -18,14 +18,4 @@
border-radius: 1px; border-radius: 1px;
background: #fafafa; 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;
}
</style> </style>

View File

@ -49,11 +49,13 @@ const [visible, setVisible] = useState(false);
</ADoption> </ADoption>
</template> </template>
<template #footer> <template #footer>
<APopconfirm content="确认退出?" position="br" @ok="authStore.logout"> <APopconfirm content="确认退出?" position="bl" @ok="authStore.logout">
<ASpace align="center" class="logout-area"> <AButton status="warning" class="logout-area">
<IconExport size="16" /> <ASpace align="center">
<span>退出</span> <IconExport size="16" />
</ASpace> <span>退出登录</span>
</ASpace>
</AButton>
</APopconfirm> </APopconfirm>
</template> </template>
</ADropdown> </ADropdown>
@ -125,7 +127,8 @@ const [visible, setVisible] = useState(false);
.logout-area { .logout-area {
padding: 8px 0; padding: 8px 0;
display: flex; display: flex;
width: 80px; min-width: 80px;
width: 100%;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }

View File

@ -34,7 +34,7 @@ const menu = [
component: () => import("@/views/User/UserContainer.vue"), component: () => import("@/views/User/UserContainer.vue"),
}, },
{ {
path: "/Role", path: "/role",
name: "Role", name: "Role",
meta: { meta: {
title: "角色管理", title: "角色管理",
@ -43,7 +43,7 @@ const menu = [
component: () => import("@/views/Role/RoleContainer.vue"), component: () => import("@/views/Role/RoleContainer.vue"),
}, },
{ {
path: "/ChatModel", path: "/chatModel",
name: "ChatModel", name: "ChatModel",
meta: { meta: {
title: "语言模型", title: "语言模型",
@ -52,7 +52,7 @@ const menu = [
component: () => import("@/views/ChatModel/ChatModelContainer.vue"), component: () => import("@/views/ChatModel/ChatModelContainer.vue"),
}, },
{ {
path: "/Product", path: "/product",
name: "Product", name: "Product",
meta: { meta: {
title: "充值产品", title: "充值产品",
@ -61,7 +61,7 @@ const menu = [
component: () => import("@/views/Product/ProductContainer.vue"), component: () => import("@/views/Product/ProductContainer.vue"),
}, },
{ {
path: "/ApiKey", path: "/apiKey",
name: "ApiKey", name: "ApiKey",
meta: { meta: {
title: "APIKEY", title: "APIKEY",

View File

@ -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`;
}
},
},
},
},
} }
}) })