@deanwu/vue-component-library 1.0.37 → 1.0.39

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.
@@ -92568,7 +92568,7 @@ function global_install(Vue, config) {
92568
92568
  function encryption(data) {
92569
92569
  var timestamp = new Date().getTime(),
92570
92570
  ciphertext = function (datastr) {
92571
- return crypto_js_default.a.AES.encrypt(datastr, crypto_js_default.a.enc.Utf8.parse(config.enKey), {
92571
+ return crypto_js_default.a.AES.encrypt(datastr, crypto_js_default.a.enc.Utf8.parse(config.request.enKey), {
92572
92572
  iv: crypto_js_default.a.enc.Utf8.parse(),
92573
92573
  mode: crypto_js_default.a.mode.ECB,
92574
92574
  padding: crypto_js_default.a.pad.Pkcs7
@@ -92578,13 +92578,13 @@ function global_install(Vue, config) {
92578
92578
  return {
92579
92579
  ciphertext: ciphertext,
92580
92580
  timestamp: timestamp,
92581
- sign: crypto_js_default.a.MD5(ciphertext + timestamp + config.md5Key).toString()
92581
+ sign: crypto_js_default.a.MD5(ciphertext + timestamp + config.request.md5Key).toString()
92582
92582
  };
92583
92583
  } // 解密数据
92584
92584
 
92585
92585
 
92586
92586
  function deciphering(data) {
92587
- return JSON.parse(crypto_js_default.a.AES.decrypt(data, crypto_js_default.a.enc.Utf8.parse(config.deKey), {
92587
+ return JSON.parse(crypto_js_default.a.AES.decrypt(data, crypto_js_default.a.enc.Utf8.parse(config.request.deKey), {
92588
92588
  iv: crypto_js_default.a.enc.Utf8.parse(),
92589
92589
  mode: crypto_js_default.a.mode.ECB,
92590
92590
  padding: crypto_js_default.a.pad.Pkcs7
@@ -92639,7 +92639,7 @@ function global_install(Vue, config) {
92639
92639
  config.request.log && console.log('@return', data);
92640
92640
 
92641
92641
  try {
92642
- if (config.response(data, axios_default.a.requestQueue) !== false) {
92642
+ if (config.request.response(data, axios_default.a.requestQueue) !== false) {
92643
92643
  if (data.code == 200) {
92644
92644
  // 请求成功
92645
92645
  opt.success && opt.success(data.obj, data.message);
@@ -92648,7 +92648,7 @@ function global_install(Vue, config) {
92648
92648
  if (!opt.fail || opt.fail(data.code, data.obj, data.message) !== false) {
92649
92649
  _this.$message({
92650
92650
  type: 'fail',
92651
- message: data.message || '服务器出现未知异常'
92651
+ message: data.message || '接口出现未知异常'
92652
92652
  });
92653
92653
  }
92654
92654
  }
@@ -92656,7 +92656,7 @@ function global_install(Vue, config) {
92656
92656
  } catch (e) {
92657
92657
  _this.$message({
92658
92658
  type: 'fail',
92659
- message: '系统出现未知异常'
92659
+ message: '程序出现未知异常'
92660
92660
  });
92661
92661
 
92662
92662
  config.request.log && console.error(e);
@@ -92672,7 +92672,7 @@ function global_install(Vue, config) {
92672
92672
  if (!opt.fail || opt.fail() !== false) {
92673
92673
  _this.$message({
92674
92674
  type: 'fail',
92675
- message: '网络出现未知异常'
92675
+ message: '数据出现未知异常'
92676
92676
  });
92677
92677
  }
92678
92678