cloud-web-corejs 1.1.0-dev.60 → 1.1.0-dev.61
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
|
@@ -77,12 +77,12 @@ export const constantRoutes = [
|
|
|
77
77
|
path: "",
|
|
78
78
|
component: () => import("@/layout/index"),
|
|
79
79
|
children: [
|
|
80
|
-
|
|
80
|
+
{
|
|
81
81
|
path: "/haier/system/salesman/list",
|
|
82
82
|
component: () => import("@/views/haier/system/salesman/list.vue"),
|
|
83
83
|
name: "haierSalesmanPilot",
|
|
84
84
|
meta: { title: "业务员", icon: "user" },
|
|
85
|
-
},
|
|
85
|
+
},
|
|
86
86
|
],
|
|
87
87
|
},
|
|
88
88
|
];
|
package/src/utils/request.js
CHANGED
|
@@ -57,8 +57,13 @@ service.interceptors.request.use(
|
|
|
57
57
|
config.filterConfig
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
61
|
-
|
|
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 (
|
|
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") &&
|
|
64
69
|
typeof config.data !== "string" &&
|
|
@@ -13,7 +13,8 @@ module.exports = {
|
|
|
13
13
|
defaultHomePage: "/demo/list.vue",
|
|
14
14
|
privateProfileCode: "private_profile",
|
|
15
15
|
uploadFileSize: 200,
|
|
16
|
-
|
|
16
|
+
requestAesEnabled: false, //全局请求体 AES 加密开关,默认关闭
|
|
17
|
+
base64Urls: [
|
|
17
18
|
"/user/common_script/save", "/user/common_script/update",
|
|
18
19
|
"/user/api_request/save", "/user/api_request/update",
|
|
19
20
|
"/user/export_template/save", "/user/export_template/update",
|