chore: update to vue 3.3
This commit is contained in:
1 parent
5d0b16c5e9
commit
a920bd4f5b
5 files changed
+28
-28
No files matched your search
@@ -1,7 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const { modelValue } = defineModels<{
|
||||
modelValue: string
|
||||
}>()
|
||||
const modelValue = defineModel()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
+3
-3
@@ -3,12 +3,12 @@ defineOptions({
|
||||
name: 'IndexPage',
|
||||
})
|
||||
|
||||
const name = $ref('')
|
||||
const name = ref('')
|
||||
|
||||
const router = useRouter()
|
||||
function go() {
|
||||
if (name)
|
||||
router.push(`/hi/${encodeURIComponent(name)}`)
|
||||
if (name.value)
|
||||
router.push(`/hi/${encodeURIComponent(name.value)}`)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user