当前位置:网站首页>路由-嵌套路由
路由-嵌套路由
2022-08-02 12:49:00 【给我来个鸡腿】
效果

代码结构

Page3.vue
<template>
<div>
<h1>Page3</h1>
<router-link tag="div" to="/page3/page31">3-1</router-link>
<router-link tag="div" to="/page3/page32">3-2</router-link>
<router-view />
</div>
</template>
<script>
</script>router.js
import Page31 from '../views/Page31.vue'
import Page32 from '../views/Page32.vue'
const routes = [
...
{
path: '/page3',
component: Page3,
children: [
{
path: 'page31',
component: Page31
},
{
path: 'page32',
component: Page32
}
]
}
]边栏推荐
- photo-sphere-viewer Chinese documentation
- unique in numpy & pandas
- SQL Server如何建表
- Drools(8): WorkBench uses
- 分布式限流利器,手撕&redisson实现
- A powerful js pop-up alert plugin
- DTG-SSOD: The latest semi-supervised detection framework, Dense Teacher (with paper download)
- Basic operations of openGauss database (super detailed)
- js九宫格样式抽奖插件
- FreeRTOS creation tasks - dynamic creation, static creation
猜你喜欢

数据湖(三):Hudi概念术语

liunx基础命令讲解
How to use the database like tap water?|Tencent Cloud Database TDSQL-C

DTG-SSOD: The latest semi-supervised detection framework, Dense Teacher (with paper download)

js半圆环加载进度动画js特效

三种实现分布式锁的方式

The 7 most commonly used data analysis thinking, solve 95% of the analysis problems

汉源高科千兆12光12电管理型工业以太网交换机 12千兆光12千兆电口宽温环网交换机

FreeRTOS--栈实验

Basic protocol explanation
随机推荐
如何关闭开启硬件加速[通俗易懂]
WPF——自定义日历
智能手表前景如何?
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
干测试这些年,去过阿里也去过小公司,给年轻测试员们一个忠告...
瀑布流式布局怎么实现(什么是瀑布流布局)
企业用直播平台能实现什么
SQL Server修改数据
js半圆环加载进度动画js特效
TFRecord简介,原理分析,代码实现?[通俗易懂]
30行代码实现无服务器实时健康码识别--操作手册
LeetCode_377_Combination Sum IV
Pod Scheduling Strategy: Affinity, Stain and Stain Tolerance
openGauss数据库基本操作(超详细)
【第六届强网杯CTF-Wp】
PHP伪协议详解
js stopwatch countdown plugin
SQL Server2019安装步骤及脱机安装Microsoft机器学习组件下一步不能继续的问题
js九宫格样式抽奖插件
OpenFeign设置header的3种方式