@deanwu/vue-component-library 1.0.37 → 1.0.38
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 +6 -6
- package/dist/vue-component-library.common.js.map +1 -1
- package/dist/vue-component-library.umd.js +6 -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
|
@@ -92577,7 +92577,7 @@ function global_install(Vue, config) {
|
|
|
92577
92577
|
function encryption(data) {
|
|
92578
92578
|
var timestamp = new Date().getTime(),
|
|
92579
92579
|
ciphertext = function (datastr) {
|
|
92580
|
-
return crypto_js_default.a.AES.encrypt(datastr, crypto_js_default.a.enc.Utf8.parse(config.enKey), {
|
|
92580
|
+
return crypto_js_default.a.AES.encrypt(datastr, crypto_js_default.a.enc.Utf8.parse(config.request.enKey), {
|
|
92581
92581
|
iv: crypto_js_default.a.enc.Utf8.parse(),
|
|
92582
92582
|
mode: crypto_js_default.a.mode.ECB,
|
|
92583
92583
|
padding: crypto_js_default.a.pad.Pkcs7
|
|
@@ -92587,13 +92587,13 @@ function global_install(Vue, config) {
|
|
|
92587
92587
|
return {
|
|
92588
92588
|
ciphertext: ciphertext,
|
|
92589
92589
|
timestamp: timestamp,
|
|
92590
|
-
sign: crypto_js_default.a.MD5(ciphertext + timestamp + config.md5Key).toString()
|
|
92590
|
+
sign: crypto_js_default.a.MD5(ciphertext + timestamp + config.request.md5Key).toString()
|
|
92591
92591
|
};
|
|
92592
92592
|
} // 解密数据
|
|
92593
92593
|
|
|
92594
92594
|
|
|
92595
92595
|
function deciphering(data) {
|
|
92596
|
-
return JSON.parse(crypto_js_default.a.AES.decrypt(data, crypto_js_default.a.enc.Utf8.parse(config.deKey), {
|
|
92596
|
+
return JSON.parse(crypto_js_default.a.AES.decrypt(data, crypto_js_default.a.enc.Utf8.parse(config.request.deKey), {
|
|
92597
92597
|
iv: crypto_js_default.a.enc.Utf8.parse(),
|
|
92598
92598
|
mode: crypto_js_default.a.mode.ECB,
|
|
92599
92599
|
padding: crypto_js_default.a.pad.Pkcs7
|
|
@@ -92657,7 +92657,7 @@ function global_install(Vue, config) {
|
|
|
92657
92657
|
if (!opt.fail || opt.fail(data.code, data.obj, data.message) !== false) {
|
|
92658
92658
|
_this.$message({
|
|
92659
92659
|
type: 'fail',
|
|
92660
|
-
message: data.message || '
|
|
92660
|
+
message: data.message || '接口出现未知异常'
|
|
92661
92661
|
});
|
|
92662
92662
|
}
|
|
92663
92663
|
}
|
|
@@ -92665,7 +92665,7 @@ function global_install(Vue, config) {
|
|
|
92665
92665
|
} catch (e) {
|
|
92666
92666
|
_this.$message({
|
|
92667
92667
|
type: 'fail',
|
|
92668
|
-
message: '
|
|
92668
|
+
message: '程序出现未知异常'
|
|
92669
92669
|
});
|
|
92670
92670
|
|
|
92671
92671
|
config.request.log && console.error(e);
|
|
@@ -92681,7 +92681,7 @@ function global_install(Vue, config) {
|
|
|
92681
92681
|
if (!opt.fail || opt.fail() !== false) {
|
|
92682
92682
|
_this.$message({
|
|
92683
92683
|
type: 'fail',
|
|
92684
|
-
message: '
|
|
92684
|
+
message: '数据出现未知异常'
|
|
92685
92685
|
});
|
|
92686
92686
|
}
|
|
92687
92687
|
|