Compare commits
2 Commits
wxr_branch
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
fe9433ba45 | 1 year ago |
|
|
46dfc795d2 | 1 year ago |
@ -0,0 +1 @@
|
||||
Subproject commit df30c6ee517297783b8f1e46eba280b0300862b7
|
||||
@ -1,97 +1,85 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Index from '../views/Index.vue'
|
||||
import Login from '../views/Login.vue'
|
||||
import Login from '../views/login.vue'
|
||||
Vue.use(VueRouter)
|
||||
|
||||
/**
|
||||
* Router configuration for the application
|
||||
* Defines the routes and their corresponding components.
|
||||
*/
|
||||
const routes = [
|
||||
// Configure the default path to display the login page
|
||||
{
|
||||
path: '/',
|
||||
meta: false,
|
||||
component: () => import('../views/Login.vue')
|
||||
},
|
||||
|
||||
//配置默认的路径,默认显示登录页
|
||||
{ path: '/', meta:false, component: () => import('../views/login.vue')},
|
||||
|
||||
{
|
||||
path: "/Index",
|
||||
name: "日常防控管理",
|
||||
component: Index,
|
||||
meta: true,
|
||||
children: [
|
||||
name:"日常防控管理",
|
||||
component:Index,
|
||||
meta:true,
|
||||
children:[
|
||||
{
|
||||
path: "/RecordManage",
|
||||
name: "打卡记录",
|
||||
component: () => import('../views/RecordManage.vue')
|
||||
path:"/RecordManage",
|
||||
name:"打卡记录",
|
||||
component:() => import('../views/RecordManage.vue')
|
||||
},
|
||||
{
|
||||
path: "/AddRecord",
|
||||
name: "健康打卡申报",
|
||||
component: () => import('../views/AddRecord.vue')
|
||||
path:"/AddRecord",
|
||||
name:"健康打卡申报",
|
||||
component:()=>import('../views/AddRecord.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/Index",
|
||||
name: "异常人员管理",
|
||||
component: Index,
|
||||
meta: true,
|
||||
children: [
|
||||
name:"异常人员管理",
|
||||
component:Index,
|
||||
meta:true,
|
||||
children:[
|
||||
{
|
||||
path: "/IdenManage",
|
||||
name: "疑似/确诊人员登记",
|
||||
component: () => import('../views/IdenManage.vue')
|
||||
path:"/IdenManage",
|
||||
name:"疑似/确诊人员登记",
|
||||
component:() => import(/* webpackChunkName: "BlogManage" */ '../views/IdenManage.vue')
|
||||
//const Foo = () => import(/* webpackChunkName: "group-foo" */ './Foo.vue')
|
||||
},
|
||||
{
|
||||
path: "/IsManage",
|
||||
name: "隔离人员登记",
|
||||
component: () => import('../views/IsManage.vue')
|
||||
path:"/IsManage",
|
||||
name:"隔离人员登记",
|
||||
component:()=>import(/* webpackChunkName:"AddBlog" */ '../views/IsManage.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/Index",
|
||||
name: "防疫物资管理",
|
||||
component: Index,
|
||||
meta: true,
|
||||
children: [
|
||||
{
|
||||
path: "/MaterialManage",
|
||||
name: "防疫物资查看",
|
||||
component: () => import('../views/MaterialManage.vue')
|
||||
},
|
||||
{
|
||||
path: "/AddMaterial",
|
||||
name: "新增防疫物资",
|
||||
component: () => import('../views/AddMaterial.vue')
|
||||
}
|
||||
]
|
||||
name:"防疫物资管理",
|
||||
component:Index,
|
||||
meta:true,
|
||||
children:[{
|
||||
path:"/MaterialManage",
|
||||
name:"防疫物资查看",
|
||||
component:()=>import(/* webpackChunkName:"MaterialManage" */ '../views/MaterialManage.vue')
|
||||
},{
|
||||
path:"/AddMaterial",
|
||||
name:"新增防疫物资",
|
||||
component:()=>import(/* webpackChunkName:"AddMaterial" */ '../views/AddMaterial.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: "/Index",
|
||||
name: "疫情概况",
|
||||
component: Index,
|
||||
meta: true,
|
||||
children: [
|
||||
{
|
||||
path: "/EChart",
|
||||
name: "防疫数据可视化",
|
||||
component: () => import('../views/EChart.vue')
|
||||
}
|
||||
name:"疫情概况",
|
||||
component:Index,
|
||||
meta:true,
|
||||
children:[{
|
||||
path:"/EChart",
|
||||
name:"防疫数据可视化",
|
||||
component:()=>import(/* webpackChunkName:"MaterialManage" */ '../views/EChart.vue')
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
/**
|
||||
* Creates a new VueRouter instance with the defined routes.
|
||||
*/
|
||||
const router = new VueRouter({
|
||||
mode: 'history', // Use HTML5 history mode
|
||||
base: process.env.BASE_URL, // Base URL for the application
|
||||
routes // Define the routes
|
||||
mode: 'history',
|
||||
base: process.env.BASE_URL,
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
export default router
|
||||
|
||||
Loading…
Reference in new issue