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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.1.0-dev.60",
4
+ "version": "1.1.0-dev.61",
5
5
  "scripts": {
6
6
  "build:ace-resources": "node build/build-ace-resources.js",
7
7
  "build:tinymce-resources": "node build/build-tinymce-resources.js",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="watermarkFlag" :style="'background:url('+imgUrl+')'"></div>
2
+ <div class="watermarkFlag" :style="{ backgroundImage: imgUrl ? 'url(' + imgUrl + ')' : 'none' }"></div>
3
3
  </template>
4
4
  <script>
5
5
  import {
@@ -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
  ];
@@ -57,8 +57,13 @@ service.interceptors.request.use(
57
57
  config.filterConfig
58
58
  );
59
59
  }
60
- if (
61
- (config.headers["Content-Type"] === "application/x-www-form-urlencoded" ||
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
- base64Urls: [
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",