当前位置:网站首页>路由-嵌套路由
路由-嵌套路由
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
}
]
}
]边栏推荐
- An example of type3 voltage loop compensator taking Boost as an example
- 技术分享| 融合调度系统中的电子围栏功能说明
- Technology sharing | Description of the electronic fence function in the integrated dispatching system
- Introduction to Graph Neural Networks (GNN) "Recommended Collection"
- kvm部署
- Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
- Pod Scheduling Strategy: Affinity, Stain and Stain Tolerance
- php字符串的截取方式
- Drools(8): WorkBench uses
- 自定义mvc框架复习
猜你喜欢

A powerful js pop-up alert plugin

ETL(二):表达式组件的使用

photo-sphere-viewer中文文档

工厂方法模式

1.3 Rapid Spanning Tree Protocol RSTP

自定义mvc框架复习
![PHP+MYSQL [Student Information Management System] (Minimalist Edition)](/img/86/d5d39eef0600acabbf3ac16c255c18.png)
PHP+MYSQL [Student Information Management System] (Minimalist Edition)

SQL Server 2019安装错误0x80004005 服务没有及时响应启动或控制请求详细解决方法

技术分享| 融合调度系统中的电子围栏功能说明

The 7 most commonly used data analysis thinking, solve 95% of the analysis problems
随机推荐
liunx基础命令讲解
DTG-SSOD: The latest semi-supervised detection framework, Dense Teacher (with paper download)
kvm部署
An example of type3 voltage loop compensator taking Boost as an example
#Summer Challenge#[FFH] OpenHarmony Device Development Foundation (3) Compilation Dependencies
SQL Server如何建表
package.json and package-lock.json
ETL(二):表达式组件的使用
sql concat() function
ESP8266模块使用完整教程「建议收藏」
svg实现的树木四季变化
Interpretation of new features | MySQL 8.0 GIPK invisible primary key
机器人碰撞检测方法形式化
How to better assess credit risk?Just watch this scorecard model live
js semi-circle loading progress animation js special effects
Swiper系列之轮播图
数据湖(二):什么是Hudi
MFC入门教程(深入浅出MFC)
LeetCode_377_组合总和Ⅳ
SQL Server 2014 installation tutorial (nanny-level graphic tutorial)