master
parent
7963ee48c7
commit
e78dd9a86b
|
|
@ -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"];
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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'}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
server:
|
server:
|
||||||
port: 8000
|
port: 7000
|
||||||
servlet:
|
servlet:
|
||||||
context-path: /tansci
|
context-path: /tansci
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue