333
This commit is contained in:
@@ -6,7 +6,7 @@ const request = (config: any) => {
|
||||
if (config.loading) useOverallStore().setLoading(true)
|
||||
setTimeout(() => {
|
||||
res({})
|
||||
if (!config.loading) useOverallStore().setLoading(false)
|
||||
if (config.loading) useOverallStore().setLoading(false)
|
||||
}, 1000)
|
||||
})
|
||||
}
|
||||
@@ -42,6 +42,7 @@ export function uploadCustomerPhoto(data: FormData) {
|
||||
url: '/api/customer-photos/upload',
|
||||
method: 'post',
|
||||
data,
|
||||
loading: true,
|
||||
})
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user