当前位置:网站首页>路由-嵌套路由
路由-嵌套路由
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
}
]
}
]
边栏推荐
- The 7 most commonly used data analysis thinking, solve 95% of the analysis problems
- Data Lake (2): What is Hudi
- Distributed current limiting, hand & redisson implementation
- PHP+MYSQL [Student Information Management System] (Minimalist Edition)
- Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
- Process finished with exit code 1
- Custom mvc framework review
- MD5 detailed explanation (check file integrity)
- 自定义mvc框架复习
- 数据湖(二):什么是Hudi
猜你喜欢
随机推荐
svg balloon rises explosion js special effect
np.nan, np.isnan, None, pd.isnull, pd.isna 整理与小结
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
FreeRTOS experiment--one function creates multiple tasks
FreeRTOS--Priority Experiment
There are several ways to jump to js source code, jump on the current page, jump on the blank page
PHP伪协议详解
以Boost为例的type3电压环补偿器实例
Data Lake (2): What is Hudi
手撸架构,网络 面试36问
ssm访问数据库数据报错
新特性解读 | MySQL 8.0 GIPK 不可见主键
simulink PID auto-tuning
How to implement waterfall flow layout (what is waterfall flow layout)
photo-sphere-viewer中文文档
package.json and package-lock.json
TFRecord简介,原理分析,代码实现?[通俗易懂]
Interpretation of new features | MySQL 8.0 GIPK invisible primary key
SQL Server 数据库之生成与执行 SQL 脚本
Openlayers Quick Start Tutorial