vue3开发中如何利用vue-router设置路由,下面web建站小编给大家简单介绍一下!
1、安装vue-router
npm install vue-router@4.0.0-beta.13
2、设置路由文件
import { createRouter, createWebHashHistory } from "vue-router"
const routes = [
{
path: '/',
component: () => import('@/index')
},
{
path: '/list',
name: "list",
component: () => import('@/pages/list')
},
{
path: '/about',
name: "about",
component: () => import('@/pages/about')
},
]
export const router = createRouter({
history: createWebHashHistory(),
routes: routes
})
export default router
上面是“vue3如何利用vue-router设置路由”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_4761.html
workflows工作流
一只白色小猫comfyui工作流
树上挂着一只快乐的小樱桃
海中一头鲸鱼ComfyUI工作流
三阶放大comfyui工作流
一只开屏的白色孔雀ComfyUI工作流
庭院,彩色玫瑰,云雾笼罩comfyui工作流
一座千年九尾白狐玉雕ComfyUI工作流
一只由粉色水晶与羽毛组成的巨型高跟鞋
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

用canvas实现画板涂鸦效果
如何利用css3+js做一个下雨效果
css3+js菜单点击动态效果
css3做一个风雨雷电天气动态图标
jquery做一个漂亮挂墙动态时钟
js导出excel插件(兼容mac电脑Numbers表格)
3d空间行走效果
css3实现星球旋转










