mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-06 19:44:04 +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/auth.js
vendored
3
resources/scripts/customer/stores/auth.js
vendored
@@ -5,8 +5,7 @@ import router from '@/scripts/customer/customer-router'
|
||||
import { handleError } from '@/scripts/customer/helpers/error-handling'
|
||||
const { global } = window.i18n
|
||||
|
||||
export const useAuthStore = defineStore({
|
||||
id: 'customerAuth',
|
||||
export const useAuthStore = defineStore('customerAuth', {
|
||||
state: () => ({
|
||||
loginData: {
|
||||
email: '',
|
||||
|
||||
Reference in New Issue
Block a user