perf:优化大屏
This commit is contained in:
@@ -4,7 +4,7 @@ import proxy from "./proxy";
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
title: '车辆巡检数据大屏',
|
||||
title: '浙江工商大学',
|
||||
nodeModulesTransform: {
|
||||
type: 'none',
|
||||
},
|
||||
@@ -16,16 +16,12 @@ export default defineConfig({
|
||||
routes: route,
|
||||
proxy: proxy,
|
||||
fastRefresh: {},
|
||||
externals: {
|
||||
'react': 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
},
|
||||
antd: {
|
||||
dark: true, // 开启暗色主题
|
||||
compact: true, // 开启紧凑主题
|
||||
},
|
||||
theme: {
|
||||
"primary-color": "#14FDF7",
|
||||
"primary-color": "#01396C",
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
export default [
|
||||
{
|
||||
path:'/',
|
||||
component:'../pages/index',
|
||||
path: '/',
|
||||
component: '../layouts/HeadLayout',
|
||||
routes: [
|
||||
{path: '/', redirect: "/home"},
|
||||
{path: "/home", component: "../pages/home"},
|
||||
{path: "/vehicle", component: "../pages/vehicle"}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user