perf: 完善useTagsView

This commit is contained in:
kailong321200875
2023-08-13 14:25:49 +08:00
parent a869a457e6
commit 175abd0aa3
5 changed files with 28 additions and 4 deletions

View File

@@ -3,10 +3,15 @@ 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>