新增自定义列表
This commit is contained in:
@@ -109,7 +109,8 @@ export const httpFetch = (url, options = { method: 'get' }) => {
|
||||
export const cancelHttp = requestObj => {
|
||||
// console.log(requestObj)
|
||||
if (!requestObj) return
|
||||
console.log('cancel:', requestObj.href)
|
||||
console.log('cancel:', requestObj)
|
||||
if (!requestObj.abort) return
|
||||
requestObj.abort()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user