valaxy-theme-hairy 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/store/modules/global.ts +4 -1
- package/utils/index.ts +1 -0
- package/utils/pinia.ts +10 -0
package/package.json
CHANGED
package/store/modules/global.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { defineStore } from 'pinia'
|
2
2
|
import { ref } from 'vue'
|
3
|
+
import { withGlobalPinia } from '../../utils'
|
3
4
|
|
4
|
-
|
5
|
+
const _useGlobalStore = defineStore('global', () => {
|
5
6
|
const headerRef = ref<HTMLDivElement>()
|
6
7
|
const showDrawer = ref(false)
|
7
8
|
|
@@ -10,3 +11,5 @@ export const useGlobalStore = defineStore('global', () => {
|
|
10
11
|
showDrawer,
|
11
12
|
}
|
12
13
|
})
|
14
|
+
|
15
|
+
export const useGlobalStore = withGlobalPinia(_useGlobalStore)
|
package/utils/index.ts
CHANGED
package/utils/pinia.ts
ADDED