mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-16 09:44:06 +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
4
resources/scripts/admin/stores/user.js
vendored
4
resources/scripts/admin/stores/user.js
vendored
@@ -7,9 +7,7 @@ export const useUserStore = (useWindow = false) => {
|
||||
const defineStoreFunc = useWindow ? window.pinia.defineStore : defineStore
|
||||
const { global } = window.i18n
|
||||
|
||||
return defineStoreFunc({
|
||||
id: 'user',
|
||||
|
||||
return defineStoreFunc('user', {
|
||||
state: () => ({
|
||||
currentUser: null,
|
||||
currentAbilities: [],
|
||||
|
||||
Reference in New Issue
Block a user