yanjinhui
10 天以前 c5de0d98241f8c8349fa38851b77efcfc61e4d26
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script setup lang="ts">
import { ContentWrap } from '@/components/ContentWrap'
import { ElInput } from 'element-plus'
import { ref } from 'vue'
import { useRoute } from 'vue-router'
import { useTagsView } from '@/hooks/web/useTagsView'
 
const { setTitle } = useTagsView()
 
const { params } = useRoute()
 
const val = ref(params.id as string)
 
setTitle(`详情页-${val.value}`)
</script>
 
<template>
  <ContentWrap> 获取参数: <ElInput v-model="val" /> </ContentWrap>
</template>