pc端
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.

32 lines
745 B

import { createRouter, createWebHistory } from 'vue-router';
4 years ago
// 还有 createWebHashHistory 和 createMemoryHistory
export const routes = [
{ path: '/', redirect: '/test' },
{
path: '/network-config',
name: 'network-config',
meta: { title: '网络参数配置' },
component: () => import('@/views/network-config.vue'),
},
{
path: '/function-config',
name: 'function-config',
meta: { title: '功能参数配置' },
component: () => import('@/views/function-config.vue'),
},
{
path: '/test',
name: 'test',
meta: { title: '测试' },
component: () => import('@/views/test.vue'),
},
4 years ago
];
const router = createRouter({
history: createWebHistory(),
routes,
});
4 years ago
export default router;