cloud-web-corejs 1.0.316 → 1.0.318
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
CHANGED
|
@@ -2886,6 +2886,7 @@ modules = {
|
|
|
2886
2886
|
tableOption.path = path;
|
|
2887
2887
|
tableOption.config.proxyConfig = {
|
|
2888
2888
|
props: {
|
|
2889
|
+
list: isDataPage ? "objx.records" : "objx", // 无分页时 VXE 使用 list 读取行数据
|
|
2889
2890
|
result: isDataPage ? "objx.records" : "objx", // 配置响应结果列表字段
|
|
2890
2891
|
total: isDataPage ? "objx.total" : "objx.length", // 配置响应结果总页数字段
|
|
2891
2892
|
},
|
package/src/utils/request.js
CHANGED
|
@@ -57,7 +57,12 @@ service.interceptors.request.use(
|
|
|
57
57
|
config.filterConfig
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (settingConfig.requestAesEnabled === true) {
|
|
61
|
+
config.data = {
|
|
62
|
+
_aeenboda: encrypt(JSON.stringify(config.data === undefined ? {} : config.data)),
|
|
63
|
+
};
|
|
64
|
+
config.headers["Content-Type"] = "application/json;charset=UTF-8";
|
|
65
|
+
} else if (
|
|
61
66
|
(config.headers["Content-Type"] === "application/x-www-form-urlencoded" ||
|
|
62
67
|
config.headers["Content-Type"] ===
|
|
63
68
|
"application/x-www-form-urlencoded;charset=UTF-8") &&
|