feat: convert model methods to named functions
This commit is contained in:
parent
176ad565cc
commit
8e3f54ae42
16 changed files with 75 additions and 51 deletions
|
|
@ -87,7 +87,7 @@ export const useListStore = defineStore('list', {
|
|||
},
|
||||
|
||||
async createList(list: IList) {
|
||||
const cancel = setLoadingPinia(useListStore)
|
||||
const cancel = setLoadingPinia(this)
|
||||
const listService = new ListService()
|
||||
|
||||
try {
|
||||
|
|
@ -103,7 +103,7 @@ export const useListStore = defineStore('list', {
|
|||
},
|
||||
|
||||
async updateList(list: IList) {
|
||||
const cancel = setLoadingPinia(useListStore)
|
||||
const cancel = setLoadingPinia(this)
|
||||
const listService = new ListService()
|
||||
|
||||
try {
|
||||
|
|
@ -139,7 +139,7 @@ export const useListStore = defineStore('list', {
|
|||
},
|
||||
|
||||
async deleteList(list: IList) {
|
||||
const cancel = setLoadingPinia(useListStore)
|
||||
const cancel = setLoadingPinia(this)
|
||||
const listService = new ListService()
|
||||
|
||||
try {
|
||||
|
|
|
|||
Reference in a new issue