-- fix bug

This commit is contained in:
yuping
2023-02-05 01:49:23 +08:00
parent fe33f4ed88
commit 28a2552c09

View File

@@ -58,7 +58,7 @@ export function useRequest(_url, params = {}, callback) {
request(_url, params).then(r => {
state.data = r.data
state.loading = false
callback(r)
callback&&callback(r)
})
}