feat: auto import for store
This commit is contained in:
1 parent
581b36d3aa
commit
6050e07123
3 files changed
+6
-2
No files matched your search
@@ -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,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
import { useUserStore } from '~/stores/user'
|
||||
|
||||
const route = useRoute()
|
||||
const user = useUserStore()
|
||||
const name = route.params.id
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user