@deanwu/vue-component-library 1.2.32 → 1.2.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue-component-library.common.js +5 -6
- package/dist/vue-component-library.common.js.map +1 -1
- package/dist/vue-component-library.umd.js +5 -6
- package/dist/vue-component-library.umd.js.map +1 -1
- package/dist/vue-component-library.umd.min.js +1 -1
- package/dist/vue-component-library.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -114012,7 +114012,7 @@ function global_install(Vue, config) {
|
|
|
114012
114012
|
timeout: config.request.timeout
|
|
114013
114013
|
}, typeof opt.loading == 'object' ? opt.loading : undefined));
|
|
114014
114014
|
const source = axios_default.a.CancelToken.source();
|
|
114015
|
-
axios_default.a.create({
|
|
114015
|
+
const request = axios_default.a.create({
|
|
114016
114016
|
baseURL: config.request.baseUrl,
|
|
114017
114017
|
headers: config.request.headers,
|
|
114018
114018
|
cancelToken: source.token
|
|
@@ -114076,11 +114076,10 @@ function global_install(Vue, config) {
|
|
|
114076
114076
|
axios_default.a.requestQueue = {};
|
|
114077
114077
|
}
|
|
114078
114078
|
const index = axios_default.a.requestIndex++;
|
|
114079
|
-
|
|
114080
|
-
|
|
114081
|
-
|
|
114082
|
-
|
|
114083
|
-
}
|
|
114079
|
+
request.abort = () => {
|
|
114080
|
+
loading && loading.close();
|
|
114081
|
+
source.cancel('cancel');
|
|
114082
|
+
delete axios_default.a.requestQueue[index];
|
|
114084
114083
|
};
|
|
114085
114084
|
axios_default.a.requestQueue[index] = request;
|
|
114086
114085
|
return request;
|