@monkeyplus/payscope 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/storefront/stores.ts +3 -3
package/package.json
CHANGED
package/storefront/stores.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { ofetch } from 'ofetch';
|
|
|
3
3
|
import { createPinia, defineStore } from 'pinia';
|
|
4
4
|
import { type App, computed, ref } from 'vue';
|
|
5
5
|
|
|
6
|
+
if (!(window as any)?.sharedPinia) {
|
|
7
|
+
(window as any).sharedPinia = createPinia();
|
|
8
|
+
}
|
|
6
9
|
export function registerPinia(app: App) {
|
|
7
|
-
if (!(window as any)?.sharedPinia) {
|
|
8
|
-
(window as any).sharedPinia = createPinia();
|
|
9
|
-
}
|
|
10
10
|
app.use((window as any).sharedPinia);
|
|
11
11
|
}
|
|
12
12
|
export const useCartStore = defineStore('cart', () => {
|