refactor: move about into to about

This commit is contained in:
YunYouJun
2023-07-30 05:08:08 +08:00
parent a419c383a3
commit 2c7f3c94c6
13 changed files with 66 additions and 62 deletions

View File

@@ -29,9 +29,10 @@ const items: BottomMenuItem[] = [
},
]
const route = useRoute()
const router = useRouter()
const active = ref('/')
const active = ref(route.path)
function onClick(item: BottomMenuItem) {
active.value = item.to || ''
router.push(item.to || '/')