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