当前位置:网站首页>路由-嵌套路由
路由-嵌套路由
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
}
]
}
]边栏推荐
猜你喜欢

OpenFeign设置header的3种方式

Drools(8):WorkBench使用

php - the first of three solid foundations

看我如何用多线程,帮助运营小姐姐解决数据校对系统变慢!

Openlayers 快速上手教程

To eliminate air bubbles to save the mushroom h5 small game source code

Data Lake (3): Hudi Concept Terminology

1.3 Rapid Spanning Tree Protocol RSTP

数据湖(二):什么是Hudi

liunx基础命令讲解
随机推荐
Process finished with exit code 1
LeetCode_139_word split
Manual architecture, Mysql interview 126 questions
30 lines of code to realize serverless real-time health code recognition -- operation manual
simulink PID auto-tuning
数据湖(二):什么是Hudi
MD5 detailed explanation (check file integrity)
ESP8266模块使用完整教程「建议收藏」
PHP伪协议详解
SQL Server 2014 installation tutorial (nanny-level graphic tutorial)
Data Lake (3): Hudi Concept Terminology
js cool dashboard plugin
WebUI自动化测试框架搭建从0到1(完整源码)更新完毕
Pod Scheduling Strategy: Affinity, Stain and Stain Tolerance
一款强大的js弹出alert插件
干测试这些年,去过阿里也去过小公司,给年轻测试员们一个忠告...
MD5详解(校验文件完整性)
设置代理服务器(谷歌+IE)「建议收藏」
svg实现的树木四季变化
智能手表前景如何?