You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
3.5 KiB
144 lines
3.5 KiB
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
import n_debug from 'assets/images/menuIcon/n_debug.svg'
|
|
import n_expe from 'assets/images/menuIcon/n_expe.svg'
|
|
import n_home from 'assets/images/menuIcon/n_home.svg'
|
|
import n_liquid from 'assets/images/menuIcon/n_liquid.svg'
|
|
import n_liquid_config from 'assets/images/menuIcon/n_liquid_config.svg'
|
|
import n_log from 'assets/images/menuIcon/n_log.svg'
|
|
import n_ore from 'assets/images/menuIcon/n_ore.svg'
|
|
import n_setting from 'assets/images/menuIcon/n_setting.svg'
|
|
import n_user from 'assets/images/menuIcon/n_user.svg'
|
|
import s_debug from 'assets/images/menuIcon/s_debug.svg'
|
|
import s_expe from 'assets/images/menuIcon/s_expe.svg'
|
|
import s_home from 'assets/images/menuIcon/s_home.svg'
|
|
import s_liquid from 'assets/images/menuIcon/s_liquid.svg'
|
|
import s_liquid_config from 'assets/images/menuIcon/s_liquid_config.svg'
|
|
import s_log from 'assets/images/menuIcon/s_log.svg'
|
|
import s_ore from 'assets/images/menuIcon/s_ore.svg'
|
|
import s_setting from 'assets/images/menuIcon/s_setting.svg'
|
|
import s_user from 'assets/images/menuIcon/s_user.svg'
|
|
|
|
const authRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/home',
|
|
name: 'home',
|
|
component: () => import('views/home/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '实验操作',
|
|
icon: n_home,
|
|
activeIcon: s_home,
|
|
},
|
|
},
|
|
{
|
|
path: '/systemLog',
|
|
name: 'systemLog',
|
|
component: () => import('views/home/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '日志记录',
|
|
icon: n_log,
|
|
activeIcon: s_log,
|
|
},
|
|
},
|
|
{
|
|
path: '/experimentLog',
|
|
name: 'experimentLog',
|
|
component: () => import('views/home/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '实验记录',
|
|
icon: n_expe,
|
|
activeIcon: s_expe,
|
|
},
|
|
},
|
|
{
|
|
path: '/container',
|
|
name: 'container',
|
|
component: () => import('views/container/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '加液配置',
|
|
icon: n_liquid,
|
|
activeIcon: s_liquid,
|
|
},
|
|
},
|
|
{
|
|
path: '/solution',
|
|
name: 'solution',
|
|
component: () => import('views/solution/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '溶液管理',
|
|
icon: n_liquid_config,
|
|
activeIcon: s_liquid_config,
|
|
},
|
|
},
|
|
{
|
|
path: '/ore',
|
|
name: 'ore',
|
|
component: () => import('views/ore/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '矿石管理',
|
|
icon: n_ore,
|
|
activeIcon: s_ore,
|
|
},
|
|
children: [{
|
|
path: 'craft',
|
|
name: 'Craft',
|
|
component: () => import('views/craft/index.vue'),
|
|
}],
|
|
},
|
|
{
|
|
path: '/user',
|
|
name: 'user',
|
|
component: () => import('views/user/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '用户管理',
|
|
icon: n_user,
|
|
activeIcon: s_user,
|
|
},
|
|
},
|
|
{
|
|
path: '/point',
|
|
name: 'point',
|
|
component: () => import('views/point/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '坐标管理',
|
|
icon: n_setting,
|
|
activeIcon: s_setting,
|
|
},
|
|
},
|
|
{
|
|
path: '/debug',
|
|
name: 'debug',
|
|
component: () => import('views/debug/index.vue'),
|
|
meta: {
|
|
isDefault: true,
|
|
title: '调试',
|
|
icon: n_debug,
|
|
activeIcon: s_debug,
|
|
},
|
|
},
|
|
]
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: () => import('../views/login/index.vue'),
|
|
},
|
|
{
|
|
path: '/',
|
|
component: () => import('../layouts/default.vue'),
|
|
redirect: '/home',
|
|
children: authRoutes,
|
|
},
|
|
]
|
|
|
|
export { authRoutes }
|
|
export default routes
|