From e78dd9a86bb5e9f72f26f4c656a5505a044d9c91 Mon Sep 17 00:00:00 2001 From: tanyp <742354529@qq.com> Date: Fri, 4 Aug 2023 17:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tansci-boot-ui/src/config/config.ts | 2 +- tansci-boot-ui/src/router/staticRouter.ts | 7 ++++--- tansci-boot-ui/vite.config.ts | 2 +- tansci-boot/src/main/resources/application.yml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tansci-boot-ui/src/config/config.ts b/tansci-boot-ui/src/config/config.ts index 9dffdfc..91f6128 100644 --- a/tansci-boot-ui/src/config/config.ts +++ b/tansci-boot-ui/src/config/config.ts @@ -1,7 +1,7 @@ // 全局不动配置项 只做导出不做修改 // 首页地址(默认) -export const HOME_URL: string = "/index"; +export const HOME_URL: string = "/index/index"; // Tabs(黑名单地址,不需要添加到 tabs 的路由地址) export const TABS_BLACK_LIST: string[] = ["/404", "/500", "/login"]; diff --git a/tansci-boot-ui/src/router/staticRouter.ts b/tansci-boot-ui/src/router/staticRouter.ts index c5056bd..033a460 100644 --- a/tansci-boot-ui/src/router/staticRouter.ts +++ b/tansci-boot-ui/src/router/staticRouter.ts @@ -26,15 +26,16 @@ export default[ name: 'index', icon: 'HomeFilled', meta: { title: "首页" }, - isShow: true, + isShow: false, + redirect: '/index/index', component: () => import("@/components/layout/Index.vue"), children: [ { - path: '/index', + path: 'index', name: 'index', icon: 'HomeFilled', meta: { title: "首页" }, - isShow: true, + isShow: false, component: () => import('@/views/Index.vue') } ] diff --git a/tansci-boot-ui/vite.config.ts b/tansci-boot-ui/vite.config.ts index a134533..634fad0 100644 --- a/tansci-boot-ui/vite.config.ts +++ b/tansci-boot-ui/vite.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ server: { proxy: { '/tansci': { - target: 'http://127.0.0.1:8000', + target: 'http://127.0.0.1:7000', changeOrigin: true, pathRewrite: {'^/tansci':'/tansci'} } diff --git a/tansci-boot/src/main/resources/application.yml b/tansci-boot/src/main/resources/application.yml index 2198b07..b654edd 100644 --- a/tansci-boot/src/main/resources/application.yml +++ b/tansci-boot/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 8000 + port: 7000 servlet: context-path: /tansci