This commit is contained in:
李志鹏
2025-10-23 17:01:13 +08:00
parent 86091b8e40
commit c1d57f2347
4 changed files with 43 additions and 25 deletions

View File

@@ -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,
})
}
/**