master
tanyp 2023-08-04 17:15:42 +08:00
parent 7963ee48c7
commit e78dd9a86b
4 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
// 全局不动配置项 只做导出不做修改 // 全局不动配置项 只做导出不做修改
// 首页地址(默认) // 首页地址(默认)
export const HOME_URL: string = "/index"; export const HOME_URL: string = "/index/index";
// Tabs黑名单地址不需要添加到 tabs 的路由地址) // Tabs黑名单地址不需要添加到 tabs 的路由地址)
export const TABS_BLACK_LIST: string[] = ["/404", "/500", "/login"]; export const TABS_BLACK_LIST: string[] = ["/404", "/500", "/login"];

View File

@ -26,15 +26,16 @@ export default[
name: 'index', name: 'index',
icon: 'HomeFilled', icon: 'HomeFilled',
meta: { title: "首页" }, meta: { title: "首页" },
isShow: true, isShow: false,
redirect: '/index/index',
component: () => import("@/components/layout/Index.vue"), component: () => import("@/components/layout/Index.vue"),
children: [ children: [
{ {
path: '/index', path: 'index',
name: 'index', name: 'index',
icon: 'HomeFilled', icon: 'HomeFilled',
meta: { title: "首页" }, meta: { title: "首页" },
isShow: true, isShow: false,
component: () => import('@/views/Index.vue') component: () => import('@/views/Index.vue')
} }
] ]

View File

@ -21,7 +21,7 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'/tansci': { '/tansci': {
target: 'http://127.0.0.1:8000', target: 'http://127.0.0.1:7000',
changeOrigin: true, changeOrigin: true,
pathRewrite: {'^/tansci':'/tansci'} pathRewrite: {'^/tansci':'/tansci'}
} }

View File

@ -1,5 +1,5 @@
server: server:
port: 8000 port: 7000
servlet: servlet:
context-path: /tansci context-path: /tansci