正常的路由跳转
- 路由文件
import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
{
path:"/",
name:"Home",
component: () => import("../views/Home.vue"),
},
{
path:"/about",
name:"About",
component: () => import("../views/About.vue"),
}
];
con
评论(0)