| | |
| | | const routes = [ |
| | | { |
| | | path: "/pages/login/login", |
| | | name: 'login', |
| | | meta: { |
| | | title: '登录', |
| | | }, |
| | | const routes = [{ |
| | | path: "/pages/login/login", |
| | | name: 'login', |
| | | meta: { |
| | | title: '登录', |
| | | }, |
| | | }, |
| | | { |
| | | path: "/pages/login/loginOauth2", |
| | |
| | | }, |
| | | }, |
| | | { |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/index/index', |
| | | name: 'index', |
| | | meta: { |
| | | title: '主页', |
| | | }, |
| | | }, |
| | | { |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/home/home', |
| | | aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'home', |
| | | meta: { |
| | | title: '首页', |
| | | }, |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/index/index', |
| | | name: 'index', |
| | | meta: { |
| | | title: '主页', |
| | | }, |
| | | }, |
| | | { |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/device/device', |
| | | //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'device', |
| | | meta: { |
| | | title: '设备', |
| | | }, |
| | | }, |
| | | |
| | | |
| | | { |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/spare/spare', |
| | | //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'spare', |
| | | meta: { |
| | | title: '备件', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/user/people', |
| | | name: 'people', |
| | | meta: { |
| | | title: '个人中心', |
| | | }, |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/home/home', |
| | | aliasPath: '/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'home', |
| | | meta: { |
| | | title: '首页', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/user/userdetail', |
| | | name: 'userdetail', |
| | | meta: { |
| | | title: '个人详情', |
| | | }, |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/device/device', |
| | | //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'device', |
| | | meta: { |
| | | title: '设备', |
| | | }, |
| | | }, |
| | | |
| | | |
| | | { |
| | | //注意:path必须跟pages.json中的地址对应,最前面别忘了加'/'哦 |
| | | path: '/pages/spare/spare', |
| | | //aliasPath:'/', //对于h5端你必须在首页加上aliasPath并设置为/ |
| | | name: 'spare', |
| | | meta: { |
| | | title: '备件', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/user/useredit', |
| | | name: 'useredit', |
| | | meta: { |
| | | title: '个人编辑', |
| | | }, |
| | | path: '/pages/user/people', |
| | | name: 'people', |
| | | meta: { |
| | | title: '个人中心', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/user/userexit', |
| | | name: 'userexit', |
| | | meta: { |
| | | title: '退出', |
| | | }, |
| | | path: '/pages/user/userdetail', |
| | | name: 'userdetail', |
| | | meta: { |
| | | title: '个人详情', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/user/location', |
| | | name: 'location', |
| | | meta: { |
| | | title: '定位', |
| | | }, |
| | | path: '/pages/user/useredit', |
| | | name: 'useredit', |
| | | meta: { |
| | | title: '个人编辑', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/common/exit', |
| | | name: 'exit', |
| | | meta: { |
| | | title: '退出', |
| | | }, |
| | | path: '/pages/user/userexit', |
| | | name: 'userexit', |
| | | meta: { |
| | | title: '退出', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/common/success', |
| | | name: 'success', |
| | | meta: { |
| | | title: 'success', |
| | | }, |
| | | },{ |
| | | path: '/pages/addressbook/address-book', |
| | | name: 'addressBook', |
| | | meta: { |
| | | title: 'addressBook', |
| | | }, |
| | | path: '/pages/user/location', |
| | | name: 'location', |
| | | meta: { |
| | | title: '定位', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/addressbook/level-address-book', |
| | | name: 'levelAddressBook', |
| | | meta: { |
| | | title: 'levelAddressBook', |
| | | }, |
| | | path: '/pages/common/exit', |
| | | name: 'exit', |
| | | meta: { |
| | | title: '退出', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/addressbook/member', |
| | | name: 'member', |
| | | meta: { |
| | | title: 'member', |
| | | }, |
| | | path: '/pages/common/success', |
| | | name: 'success', |
| | | meta: { |
| | | title: 'success', |
| | | }, |
| | | }, { |
| | | path: '/pages/addressbook/address-book', |
| | | name: 'addressBook', |
| | | meta: { |
| | | title: 'addressBook', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/addressbook/address-detail', |
| | | name: 'addressDetail', |
| | | meta: { |
| | | title: 'addressDetail', |
| | | }, |
| | | path: '/pages/addressbook/level-address-book', |
| | | name: 'levelAddressBook', |
| | | meta: { |
| | | title: 'levelAddressBook', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/annotation/annotationList', |
| | | name: 'annotationList', |
| | | meta: { |
| | | title: '通知公告', |
| | | }, |
| | | path: '/pages/addressbook/member', |
| | | name: 'member', |
| | | meta: { |
| | | title: 'member', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/device/deviceDeils/deviceDeils', |
| | | name: 'deviceDeils', |
| | | meta: { |
| | | title: '设备详情', |
| | | }, |
| | | path: '/pages/addressbook/address-detail', |
| | | name: 'addressDetail', |
| | | meta: { |
| | | title: 'addressDetail', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/device/deviceWebDeils/deviceWebDeils', |
| | | name: 'deviceWebDeils', |
| | | meta: { |
| | | title: '设备详情', |
| | | }, |
| | | }, |
| | | |
| | | |
| | | { |
| | | path: '/pages/TaskManager/TaskManagerList', |
| | | name: 'TaskManagerList', |
| | | meta: { |
| | | title: '已办', |
| | | }, |
| | | path: '/pages/annotation/annotationList', |
| | | name: 'annotationList', |
| | | meta: { |
| | | title: '通知公告', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/ToDoList/ToDoList', |
| | | name: 'ToDoList', |
| | | meta: { |
| | | title: '待办', |
| | | }, |
| | | }, |
| | | |
| | | { |
| | | path: '/pages/annotation/annotationDetail', |
| | | name: 'annotationDetail', |
| | | meta: { |
| | | title: '通知详情', |
| | | }, |
| | | path: '/pages/device/deviceDeils/deviceDeils', |
| | | name: 'deviceDeils', |
| | | meta: { |
| | | title: '设备详情', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/common/helloWorld', |
| | | name: 'helloWorld', |
| | | meta: { |
| | | title: 'helloWorld', |
| | | }, |
| | | path: '/pages/device/deviceWebDeils/deviceWebDeils', |
| | | name: 'deviceWebDeils', |
| | | meta: { |
| | | title: '设备详情', |
| | | }, |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | path: '/pages/TaskManager/TaskManagerList', |
| | | name: 'TaskManagerList', |
| | | meta: { |
| | | title: '已办', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/ToDoList/ToDoList', |
| | | name: 'ToDoList', |
| | | meta: { |
| | | title: '待办', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/TaskManager/TaskManagerDeils/TaskManagerDeils', |
| | | name: 'TaskManagerDeils', |
| | | meta: { |
| | | title: '已办详情', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/ToDoList/ToDoListDeils/ToDoListDeils', |
| | | name: 'ToDoListDeils', |
| | | meta: { |
| | | title: '待办详情', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/annotation/annotationDetail', |
| | | name: 'annotationDetail', |
| | | meta: { |
| | | title: '通知详情', |
| | | }, |
| | | }, |
| | | { |
| | | path: '/pages/common/helloWorld', |
| | | name: 'helloWorld', |
| | | meta: { |
| | | title: 'helloWorld', |
| | | }, |
| | | }, |
| | | |
| | | |
| | | ] |
| | | export default routes |