mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Upgrade Pinia from v2 to v3 (#596)
Migrate all 37 store definitions from the deprecated object-with-id
signature to the string-id-first signature required by Pinia 3:
defineStore({ id: 'name', ... }) → defineStore('name', { ... })
This commit is contained in:
committed by
GitHub
parent
ad5a7e51b9
commit
3ceb08bc31
3
resources/scripts/customer/stores/global.js
vendored
3
resources/scripts/customer/stores/global.js
vendored
@@ -3,8 +3,7 @@ import { useUserStore } from './user'
|
||||
const { defineStore } = window.pinia
|
||||
import http from '@/scripts/http'
|
||||
const { global } = window.i18n
|
||||
export const useGlobalStore = defineStore({
|
||||
id: 'CustomerPortalGlobalStore',
|
||||
export const useGlobalStore = defineStore('CustomerPortalGlobalStore', {
|
||||
state: () => ({
|
||||
languages: [],
|
||||
currency: null,
|
||||
|
||||
Reference in New Issue
Block a user