59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
import * as VueRouter from "vue-router"
|
|
|
|
/**
|
|
*
|
|
* @type {Readonly<VueRouter.RouteRecordRaw[]>}
|
|
*/
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
component: ()=>import("src/views/scaffold/index.vue"),
|
|
meta: {
|
|
title: "首页",
|
|
keepAlive: true,
|
|
groups: "/"
|
|
},
|
|
children: [
|
|
{
|
|
path: "/home",
|
|
component: ()=>import("src/views/tabs/home/Home.vue"),
|
|
meta: {
|
|
title: "首页",
|
|
groups: "/",
|
|
keepAlive: true,
|
|
}
|
|
},
|
|
{
|
|
path: "/environment",
|
|
component:()=>import("src/views/tabs/environment/index.vue"),
|
|
meta:{
|
|
title: "环境变量",
|
|
groups: "/",
|
|
}
|
|
},
|
|
{
|
|
path: "/location-record",
|
|
component: ()=>import("src/views/tabs/location-record/index.vue"),
|
|
meta: {
|
|
title: "定位记录",
|
|
groups: "/"
|
|
}
|
|
},
|
|
{
|
|
path: "/test",
|
|
component: ()=>import("src/views/tabs/home/Test.vue"),
|
|
meta: {
|
|
title: "测试",
|
|
groups: "/"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
]
|
|
|
|
const Router = VueRouter.createRouter({
|
|
history: VueRouter.createWebHashHistory(),
|
|
routes
|
|
})
|
|
export default Router
|