mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-09 14:34:47 +00:00
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', { ... })
14 lines
225 B
JavaScript
Vendored
14 lines
225 B
JavaScript
Vendored
const { defineStore } = window.pinia
|
|
|
|
export const useCustomerStore = defineStore('customers', {
|
|
state: () => ({
|
|
customers: 'okay',
|
|
}),
|
|
|
|
actions: {
|
|
resetCustomers() {
|
|
this.customers = 'okay'
|
|
},
|
|
}
|
|
})
|