opt: 优化 docker-compse 构建脚本,修复后端路由 Bug

This commit is contained in:
RockYang
2023-06-23 18:04:16 +08:00
parent 1795a891ce
commit d03ed6570b
8 changed files with 23 additions and 19 deletions

View File

@@ -15,6 +15,12 @@ const routes = [
{name: 'login', path: '/login', component: Login, meta: {title: '用户登录'}},
{name: 'register', path: '/register', component: Register, meta: {title: '用户注册'}},
{name: 'plus', path: '/chat', component: ChatPlus, meta: {title: 'ChatGPT-智能助手V3'}},
{
path: '/admin/login',
name: 'admin-login',
meta: {title: 'Chat-Plus 控制台登录'},
component: () => import('@/views/admin/Login.vue'),
},
{
name: 'admin',
path: '/admin',
@@ -22,12 +28,6 @@ const routes = [
component: () => import("@/views/admin/Home.vue"),
meta: {title: 'ChatGPT-Plus 管理后台'},
children: [
{
path: '/admin/welcome',
name: 'admin-home',
meta: {title: 'Chat-Plus 控制台登录'},
component: () => import('@/views/admin/Login.vue'),
},
{
path: '/admin/welcome',
name: 'admin-home',