dev #107
@ -212,9 +212,14 @@ export function useMasterController() {
|
||||
}
|
||||
|
||||
const getQuotationItem = async (params) => {
|
||||
return await post({ url: '/api/v1/master/getQuotationItem', data: params }).then((res) => {
|
||||
return res
|
||||
})
|
||||
return await post({ url: '/api/v1/master/getQuotationItem', data: params })
|
||||
.then((res) => {
|
||||
return res
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log('🚀 ~ getQuotationItem ~ error:', error)
|
||||
setIsGlobalLoading(false)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -343,6 +343,7 @@ export function usePlan(params = {}) {
|
||||
})
|
||||
.catch((error) => {
|
||||
swalFire({ text: error.message, icon: 'error' })
|
||||
setIsGlobalLoading(false)
|
||||
})
|
||||
return rtn
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user