mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
-- fix bug
This commit is contained in:
@@ -58,7 +58,7 @@ export function useRequest(_url, params = {}, callback) {
|
|||||||
request(_url, params).then(r => {
|
request(_url, params).then(r => {
|
||||||
state.data = r.data
|
state.data = r.data
|
||||||
state.loading = false
|
state.loading = false
|
||||||
callback(r)
|
callback&&callback(r)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user