From 30e6d6dddbe0ee56b68a2d4ddc078cf24bb2f877 Mon Sep 17 00:00:00 2001 From: XiaoDaiGua-Ray <443547225@qq.com> Date: Wed, 6 Dec 2023 12:33:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2demo=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/router-demo/router-demo-detail/index.tsx | 4 +++- src/views/demo/router-demo/router-demo-home/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/demo/router-demo/router-demo-detail/index.tsx b/src/views/demo/router-demo/router-demo-detail/index.tsx index 0c06479f..abbf6bbf 100644 --- a/src/views/demo/router-demo/router-demo-detail/index.tsx +++ b/src/views/demo/router-demo/router-demo-detail/index.tsx @@ -14,9 +14,11 @@ import { NCard, NSpace } from 'naive-ui' const RouterDemoDetail = defineComponent({ name: 'RouterDemoDetail', render() { - console.log(this.$route.query) return ( + + 你好 {this.$route.query.name} + 我是平层路由详情页面

1. 可以点击面包屑或者菜单返回到主页面

diff --git a/src/views/demo/router-demo/router-demo-home/index.tsx b/src/views/demo/router-demo/router-demo-home/index.tsx index d2a21344..0b1a72f5 100644 --- a/src/views/demo/router-demo/router-demo-home/index.tsx +++ b/src/views/demo/router-demo/router-demo-home/index.tsx @@ -53,7 +53,7 @@ const RouterDemoHome = defineComponent({ router.push({ path: '/router-demo/router-demo-detail', query: { - name: '23', + name: row.name, }, }) }}