@fecp/designer 5.1.5 → 5.1.8
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/es/designer.css +41 -35
- package/es/packages/designer/src/axios/config.mjs +6 -5
- package/es/packages/designer/src/layout/index.vue.mjs +2 -2
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +4 -3
- package/es/packages/designer/src/utils/env.mjs +5 -2
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/lib/designer.css +41 -35
- package/lib/packages/designer/src/axios/config.js +6 -5
- package/lib/packages/designer/src/layout/index.vue.js +2 -2
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +4 -3
- package/lib/packages/designer/src/utils/env.js +5 -2
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { aes } from "./crypto.mjs";
|
|
2
2
|
import "../../../../node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.mjs";
|
|
3
|
+
import envConfig from "../utils/env.mjs";
|
|
3
4
|
/* empty css */
|
|
4
5
|
/* empty css */
|
|
5
6
|
/* empty css */
|
|
@@ -11,8 +12,8 @@ import axios from "../../../../node_modules/.pnpm/axios@1.8.4/node_modules/axios
|
|
|
11
12
|
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.mjs";
|
|
12
13
|
import { ElMessageBox } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message-box/index.mjs";
|
|
13
14
|
const service = axios.create({
|
|
14
|
-
baseURL:
|
|
15
|
-
timeout:
|
|
15
|
+
baseURL: envConfig.api_base_url,
|
|
16
|
+
timeout: envConfig.api_timeout
|
|
16
17
|
});
|
|
17
18
|
service.interceptors.request.use(
|
|
18
19
|
(config) => {
|
|
@@ -22,8 +23,8 @@ service.interceptors.request.use(
|
|
|
22
23
|
config.headers.token = window.$store.getters.token;
|
|
23
24
|
config.headers.refreshToken = window.$store.getters.refreshToken;
|
|
24
25
|
}
|
|
25
|
-
config.headers.crypto =
|
|
26
|
-
config.headers.sig =
|
|
26
|
+
config.headers.crypto = envConfig.data_crypto || false;
|
|
27
|
+
config.headers.sig = envConfig.data_verify_sign || false;
|
|
27
28
|
return config;
|
|
28
29
|
},
|
|
29
30
|
(error) => {
|
|
@@ -54,7 +55,7 @@ service.interceptors.response.use(
|
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
let responseData = response.data.data;
|
|
57
|
-
let isCrypto =
|
|
58
|
+
let isCrypto = envConfig.data_crypto || false;
|
|
58
59
|
if (isCrypto && responseData) {
|
|
59
60
|
let decryptData = aes.de(responseData);
|
|
60
61
|
let resultJson = JSON.parse(decryptData);
|
|
@@ -100,7 +100,7 @@ const _sfc_main = {
|
|
|
100
100
|
default: withCtx(() => [
|
|
101
101
|
isInitd.value == 1 ? (openBlock(), createBlock(_component_el_container, {
|
|
102
102
|
key: 0,
|
|
103
|
-
|
|
103
|
+
class: "fec-designer-container"
|
|
104
104
|
}, {
|
|
105
105
|
default: withCtx(() => [
|
|
106
106
|
createVNode(unref(_sfc_main$1)),
|
|
@@ -140,7 +140,7 @@ const _sfc_main = {
|
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
143
|
+
const layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f03b0426"]]);
|
|
144
144
|
export {
|
|
145
145
|
layout as default
|
|
146
146
|
};
|
|
@@ -20,6 +20,7 @@ import "../../store/index.mjs";
|
|
|
20
20
|
import { JsonViewer as Q } from "../../../../../node_modules/.pnpm/vue3-json-viewer@2.4.1_vue@3.5.13_typescript@5.7.3_/node_modules/vue3-json-viewer/dist/vue3-json-viewer.mjs";
|
|
21
21
|
/* empty css */
|
|
22
22
|
import { get, post, postForm } from "../../axios/index.mjs";
|
|
23
|
+
import envConfig from "../../utils/env.mjs";
|
|
23
24
|
/* empty css */
|
|
24
25
|
/* empty css */
|
|
25
26
|
/* empty css */
|
|
@@ -63,10 +64,10 @@ const _sfc_main = {
|
|
|
63
64
|
const responseData = ref("");
|
|
64
65
|
const requestTime = ref(0);
|
|
65
66
|
const serversOptions = ref([]);
|
|
66
|
-
for (const key in
|
|
67
|
+
for (const key in envConfig.servers) {
|
|
67
68
|
serversOptions.value.push({
|
|
68
69
|
label: key,
|
|
69
|
-
value:
|
|
70
|
+
value: envConfig.servers[key]
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
watch(
|
|
@@ -358,7 +359,7 @@ const _sfc_main = {
|
|
|
358
359
|
};
|
|
359
360
|
}
|
|
360
361
|
};
|
|
361
|
-
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
362
|
+
const DataSource = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08787ccd"]]);
|
|
362
363
|
export {
|
|
363
364
|
DataSource as default
|
|
364
365
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
const IS_PROD = ["production", "prod"].includes("production");
|
|
2
1
|
function getEnvConfig() {
|
|
3
|
-
|
|
2
|
+
var _a, _b;
|
|
3
|
+
const isProd = ((_a = window.__ENV__) == null ? void 0 : _a.NODE_ENV) === "production" || ((_b = window.__ENV__) == null ? void 0 : _b.isProd);
|
|
4
|
+
const isProdByHost = /(prod|\.com$)/.test(window.location.hostname);
|
|
5
|
+
const finalIsProd = isProd ?? isProdByHost;
|
|
6
|
+
const configName = finalIsProd ? "configProd" : "configDev";
|
|
4
7
|
return window[configName] || window.parent[configName];
|
|
5
8
|
}
|
|
6
9
|
const envConfig = getEnvConfig();
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
11
|
/* empty css */
|
|
10
12
|
/* empty css */
|
|
11
13
|
/* empty css */
|
|
12
14
|
/* empty css */
|
|
13
15
|
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
|
-
import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
16
|
import { SwipeCell } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/swipe-cell/index.mjs";
|
|
17
17
|
import { showConfirmDialog } from "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/function-call.mjs";
|
|
18
18
|
import "../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/dialog/index.mjs";
|