Comparing version 1.1.9 to 1.1.10
import axios from 'axios'; | ||
import md5 from 'js-md5'; | ||
var CancelToken = axios.CancelToken; | ||
var source = CancelToken.source(); | ||
var _ = require('lodash'); | ||
@@ -58,2 +60,5 @@ var messageList = []; | ||
pushMessage() | ||
config.cancelToken = source.token | ||
source.cancel(`请求过于频繁,拦截URL为:${config.url}`) | ||
return config | ||
} else { | ||
@@ -154,2 +159,3 @@ urlList.push(config.url) | ||
} | ||
}, (message) => { | ||
}) | ||
@@ -156,0 +162,0 @@ // 过滤响应 |
{ | ||
"name": "one-sport", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "use for one-sport company", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9466
245