feat: use unplugin-auto-import instead of vue-global-api

This commit is contained in:
Anthony Fu committed 2021-08-24 15:26:32 +08:00
1 parent abdc11932a
commit ccd691af57
10 files changed
+60 -30

No files matched your search

-2
View File
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { useRouter } from 'vue-router'
const props = defineProps<{ name: string }>()
const router = useRouter()
</script>
-2
View File
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { useRouter } from 'vue-router'
const name = ref('')
const router = useRouter()