@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
|
@@ -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
|
|
@@ -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
|
|