2025-06-26 17:45:31 +08:00

34 lines
841 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { NCard, NFlex } from 'naive-ui'
const RouterDemoDetail = defineComponent({
name: 'RouterDemoDetail',
setup() {
const route = useRoute()
return {
route,
}
},
render() {
const { route } = this
return (
<NFlex>
<NCard title={(route.query.name as string) || 'hello'}>
{route.query.name}
</NCard>
<NCard title="平层路由详情页面"></NCard>
<NCard title="TIP">
<h2>1. </h2>
<h2>
2. children
sameLevel
</h2>
</NCard>
</NFlex>
)
},
})
export default RouterDemoDetail