mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
feat: 更新详情页面demo展示
This commit is contained in:
parent
2c24ae5d94
commit
30e6d6dddb
@ -14,9 +14,11 @@ import { NCard, NSpace } from 'naive-ui'
|
|||||||
const RouterDemoDetail = defineComponent({
|
const RouterDemoDetail = defineComponent({
|
||||||
name: 'RouterDemoDetail',
|
name: 'RouterDemoDetail',
|
||||||
render() {
|
render() {
|
||||||
console.log(this.$route.query)
|
|
||||||
return (
|
return (
|
||||||
<NSpace wrapItem={false}>
|
<NSpace wrapItem={false}>
|
||||||
|
<NCard title={(this.$route.query.name as string) || 'hello'}>
|
||||||
|
你好 {this.$route.query.name}
|
||||||
|
</NCard>
|
||||||
<NCard title="平层路由详情页面">我是平层路由详情页面</NCard>
|
<NCard title="平层路由详情页面">我是平层路由详情页面</NCard>
|
||||||
<NCard title="TIP">
|
<NCard title="TIP">
|
||||||
<h2>1. 可以点击面包屑或者菜单返回到主页面</h2>
|
<h2>1. 可以点击面包屑或者菜单返回到主页面</h2>
|
||||||
|
@ -53,7 +53,7 @@ const RouterDemoHome = defineComponent({
|
|||||||
router.push({
|
router.push({
|
||||||
path: '/router-demo/router-demo-detail',
|
path: '/router-demo/router-demo-detail',
|
||||||
query: {
|
query: {
|
||||||
name: '23',
|
name: row.name,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user