chore: update to vue 3.3

This commit is contained in:
Anthony Fu committed 2023-05-16 21:36:03 +02:00
1 parent 5d0b16c5e9
commit a920bd4f5b
5 files changed
+28 -28

No files matched your search

+1 -3
View File
@@ -1,7 +1,5 @@
<script setup lang="ts">
const { modelValue } = defineModels<{
modelValue: string
}>()
const modelValue = defineModel()
</script>
<template>
+3 -3
View File
@@ -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>