wotokol-edm 1.1.66 → 1.1.68
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/package.json +1 -1
- package/wotokol-edm.common.js +12 -6
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +12 -6
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +19 -19
- package/wotokol-edm.umd.min.js.gz +0 -0
package/package.json
CHANGED
package/wotokol-edm.common.js
CHANGED
|
@@ -91266,9 +91266,11 @@ service.interceptors.request.use(config => {
|
|
|
91266
91266
|
service.interceptors.response.use(response => {
|
|
91267
91267
|
const res = response.data;
|
|
91268
91268
|
try {
|
|
91269
|
-
if (response.data.code != 0) {
|
|
91269
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
91270
91270
|
// 捕获code不为0的接口异常
|
|
91271
|
-
|
|
91271
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
91272
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
91273
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
91272
91274
|
}
|
|
91273
91275
|
} catch (error) {
|
|
91274
91276
|
// 处理错误的代码,例如打印错误信息
|
|
@@ -97584,9 +97586,11 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97584
97586
|
}
|
|
97585
97587
|
}
|
|
97586
97588
|
try {
|
|
97587
|
-
if (response.data.code != 0) {
|
|
97589
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
97588
97590
|
// 捕获code不为0的接口异常
|
|
97589
|
-
|
|
97591
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
97592
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
97593
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
97590
97594
|
}
|
|
97591
97595
|
} catch (error) {
|
|
97592
97596
|
// 处理错误的代码,例如打印错误信息
|
|
@@ -132426,9 +132430,11 @@ request_dss_instance.interceptors.response.use(function (response) {
|
|
|
132426
132430
|
alert('服务器不可用,请联系系统管理员');
|
|
132427
132431
|
}
|
|
132428
132432
|
try {
|
|
132429
|
-
if (response.data.code != 0) {
|
|
132433
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
132430
132434
|
// 捕获code不为0的接口异常
|
|
132431
|
-
|
|
132435
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
132436
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
132437
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
132432
132438
|
}
|
|
132433
132439
|
} catch (error) {
|
|
132434
132440
|
// 处理错误的代码,例如打印错误信息
|
package/wotokol-edm.common.js.gz
CHANGED
|
Binary file
|
package/wotokol-edm.css.gz
CHANGED
|
Binary file
|
package/wotokol-edm.umd.js
CHANGED
|
@@ -91276,9 +91276,11 @@ service.interceptors.request.use(config => {
|
|
|
91276
91276
|
service.interceptors.response.use(response => {
|
|
91277
91277
|
const res = response.data;
|
|
91278
91278
|
try {
|
|
91279
|
-
if (response.data.code != 0) {
|
|
91279
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
91280
91280
|
// 捕获code不为0的接口异常
|
|
91281
|
-
|
|
91281
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
91282
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
91283
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
91282
91284
|
}
|
|
91283
91285
|
} catch (error) {
|
|
91284
91286
|
// 处理错误的代码,例如打印错误信息
|
|
@@ -97594,9 +97596,11 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97594
97596
|
}
|
|
97595
97597
|
}
|
|
97596
97598
|
try {
|
|
97597
|
-
if (response.data.code != 0) {
|
|
97599
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
97598
97600
|
// 捕获code不为0的接口异常
|
|
97599
|
-
|
|
97601
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
97602
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
97603
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
97600
97604
|
}
|
|
97601
97605
|
} catch (error) {
|
|
97602
97606
|
// 处理错误的代码,例如打印错误信息
|
|
@@ -132436,9 +132440,11 @@ request_dss_instance.interceptors.response.use(function (response) {
|
|
|
132436
132440
|
alert('服务器不可用,请联系系统管理员');
|
|
132437
132441
|
}
|
|
132438
132442
|
try {
|
|
132439
|
-
if (response.data.code != 0) {
|
|
132443
|
+
if (typeof response.data === 'object' && response.data.hasOwnProperty('code') && response.data.code != 0) {
|
|
132440
132444
|
// 捕获code不为0的接口异常
|
|
132441
|
-
|
|
132445
|
+
const userInfo = JSON.parse(localStorage.getItem("user_info") || '{}');
|
|
132446
|
+
const userId = userInfo.user_id ? userInfo.user_id + '_' : '';
|
|
132447
|
+
throw new Error(userId + response.request.responseURL + response.request.responseText || response.data.code);
|
|
132442
132448
|
}
|
|
132443
132449
|
} catch (error) {
|
|
132444
132450
|
// 处理错误的代码,例如打印错误信息
|
package/wotokol-edm.umd.js.gz
CHANGED
|
Binary file
|