feat: auto import for store

This commit is contained in:
Anthony Fu committed 2022-04-19 10:57:23 +08:00
1 parent 581b36d3aa
commit 6050e07123
3 files changed
+6 -2

No files matched your search

+6
View File
@@ -28,6 +28,12 @@ export default defineNuxtConfig({
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
],
},
autoImports: {
dirs: [
'composables',
'store',
],
},
experimental: {
reactivityTransform: true,
// viteNode: true,
-2
View File
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { useUserStore } from '~/stores/user'
const route = useRoute()
const user = useUserStore()
const name = route.params.id
View File
File renamed without changes.