Skip to content

Commit a734efe

Browse files
committed
test: use layer store to test auto import
1 parent d791c64 commit a734efe

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default defineNuxtConfig({})
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export const useBasicStore = defineStore('layer-basic', () => {
2+
const count = ref(0)
3+
4+
return { count }
5+
})

packages/nuxt/playground/pages/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
44
const counter = useCounter()
55
6-
useTestStore()
7-
useSomeStoreStore()
6+
useTestStore() // ~/domain/one/stores/testStore.ts
7+
useSomeStoreStore() // ~/stores/nested/some-stores.ts
8+
useBasicStore() // ~~/layers/layer-domain/stores/basic.ts
89
910
// await useAsyncData('counter', () => counter.asyncIncrement().then(() => true))
1011

0 commit comments

Comments
 (0)