@deanwu/vue-component-library 1.2.30 → 1.2.31

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.
@@ -111475,6 +111475,7 @@ var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
111475
111475
  baseUrl: '',
111476
111476
  headers: '',
111477
111477
  successCode: 200,
111478
+ timeout: 10000,
111478
111479
  dataFormatter(data) {
111479
111480
  return data;
111480
111481
  },
@@ -114016,7 +114017,9 @@ function global_install(Vue, config) {
114016
114017
  opt.params = opt.data;
114017
114018
  delete opt.data;
114018
114019
  }
114019
- opt.loading && this.$loading(typeof opt.loading == 'object' ? opt.loading : undefined);
114020
+ opt.loading && this.$loading(Object.assign({
114021
+ timeout: config.request.timeout
114022
+ }, typeof opt.loading == 'object' ? opt.loading : undefined));
114020
114023
  const source = axios_default.a.CancelToken.source();
114021
114024
  axios_default.a.create({
114022
114025
  baseURL: config.request.baseUrl,