@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
|
@@ -114021,7 +114021,7 @@ function global_install(Vue, config) {
|
|
|
114021
114021
|
timeout: config.request.timeout
|
|
114022
114022
|
}, typeof opt.loading == 'object' ? opt.loading : undefined));
|
|
114023
114023
|
const source = axios_default.a.CancelToken.source();
|
|
114024
|
-
axios_default.a.create({
|
|
114024
|
+
const request = axios_default.a.create({
|
|
114025
114025
|
baseURL: config.request.baseUrl,
|
|
114026
114026
|
headers: config.request.headers,
|
|
114027
114027
|
cancelToken: source.token
|
|
@@ -114085,11 +114085,10 @@ function global_install(Vue, config) {
|
|
|
114085
114085
|
axios_default.a.requestQueue = {};
|
|
114086
114086
|
}
|
|
114087
114087
|
const index = axios_default.a.requestIndex++;
|
|
114088
|
-
|
|
114089
|
-
|
|
114090
|
-
|
|
114091
|
-
|
|
114092
|
-
}
|
|
114088
|
+
request.abort = () => {
|
|
114089
|
+
loading && loading.close();
|
|
114090
|
+
source.cancel('cancel');
|
|
114091
|
+
delete axios_default.a.requestQueue[index];
|
|
114093
114092
|
};
|
|
114094
114093
|
axios_default.a.requestQueue[index] = request;
|
|
114095
114094
|
return request;
|