@deanwu/vue-component-library 1.2.31 → 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.
@@ -110912,7 +110912,7 @@ var loading_component = normalizeComponent(
110912
110912
 
110913
110913
  )
110914
110914
 
110915
- /* harmony default export */ var loading = (loading_component.exports);
110915
+ /* harmony default export */ var popup_loading = (loading_component.exports);
110916
110916
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48032ffa-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/popup/message.vue?vue&type=template&id=40722425&scoped=true&
110917
110917
  var messagevue_type_template_id_40722425_scoped_true_render = function render() {
110918
110918
  var _vm = this,
@@ -114008,17 +114008,17 @@ function global_install(Vue, config) {
114008
114008
  opt.params = opt.data;
114009
114009
  delete opt.data;
114010
114010
  }
114011
- opt.loading && this.$loading(Object.assign({
114011
+ let loading = opt.loading && this.$loading(Object.assign({
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
114019
114019
  })(opt).then(res => {
114020
114020
  delete axios_default.a.requestQueue[index];
114021
- opt.loading && this.$loadOver();
114021
+ loading && loading.close();
114022
114022
  try {
114023
114023
  const data = deciphering(res.data.ciphertext);
114024
114024
  config.request.log && console.group(`----- success ${opt.url.split('?')[0]} -----`);
@@ -114064,7 +114064,7 @@ function global_install(Vue, config) {
114064
114064
  config.request.log && console.groupEnd();
114065
114065
  }).catch(e => {
114066
114066
  delete axios_default.a.requestQueue[index];
114067
- opt.loading && this.$loadOver();
114067
+ loading && loading.close();
114068
114068
  if (e.message == 'cancel') return;
114069
114069
  this.$message({
114070
114070
  type: 'fail',
@@ -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
- const request = {
114080
- abort() {
114081
- source.cancel('cancel');
114082
- delete axios_default.a.requestQueue[index];
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;
@@ -114271,7 +114270,7 @@ const GLOBAL_COMPS = [upload, public_clipboard, dialog_min];
114271
114270
 
114272
114271
 
114273
114272
 
114274
- const DYNAMIC_COMPS = [loading, popup_message, notice, popup_confirm, popup_preview];
114273
+ const DYNAMIC_COMPS = [popup_loading, popup_message, notice, popup_confirm, popup_preview];
114275
114274
 
114276
114275
 
114277
114276