diff --git a/.env.development b/.env.development
index e118379..a126418 100644
--- a/.env.development
+++ b/.env.development
@@ -48,3 +48,6 @@ VITE_GLOB_API_URL_PREFIX =
VITE_GLOB_DISABLE_NEWS=false
# 禁用关闭页面提示
# VITE_GLOB_CLOSE_ALERT_DISABLED=true
+
+#附件上传显示提示
+VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!)
diff --git a/.env.development.example b/.env.development.example
index 5f1c007..5bb5b2e 100644
--- a/.env.development.example
+++ b/.env.development.example
@@ -42,3 +42,5 @@ VITE_GLOB_DISABLE_NEWS = true
#登录时是否需要输入租户码
# VITE_GLOB_TENANT_INPUT_REQUIRED = true
+#附件上传显示提示
+VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!)
diff --git a/.env.production b/.env.production
index 1eb4f1a..abe6dc5 100644
--- a/.env.production
+++ b/.env.production
@@ -45,3 +45,6 @@ VITE_USE_PWA = false
VITE_GLOB_DISABLE_NEWS=false
# 禁用关闭页面提示
# VITE_GLOB_CLOSE_ALERT_DISABLED=true
+
+#附件上传显示提示
+VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!)
diff --git a/.env.production.example b/.env.production.example
index 3a6f021..58f6665 100644
--- a/.env.production.example
+++ b/.env.production.example
@@ -42,3 +42,5 @@ VITE_USE_PWA = false
#登录时是否需要输入租户码
# VITE_GLOB_TENANT_INPUT_REQUIRED = true
+#附件上传显示提示
+VITE_GLOB_UPLOAD_ALERT_TIP=(严禁在本非涉密平台处理、传输国家秘密、工作秘密、商业秘密、敏感信息,请确认扫描、传输的文件资料不涉密!)
diff --git a/src/components/Designer/src/components/componentProperty/PropertyOption.vue b/src/components/Designer/src/components/componentProperty/PropertyOption.vue
index abf94c4..3d64cd4 100644
--- a/src/components/Designer/src/components/componentProperty/PropertyOption.vue
+++ b/src/components/Designer/src/components/componentProperty/PropertyOption.vue
@@ -489,6 +489,9 @@
{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -778,7 +781,7 @@
import StaticData from './settings/StaticData.vue';
import { ApiConfig } from '/@/components/ApiConfig';
import { DicItemSelect } from '/@/components/DicItemSelect';
- // import { getAppEnvConfig } from '/@/utils/env';
+ import { getAppEnvConfig } from '/@/utils/env';
import { ColorPicker } from '/@/components/ColorPicker';
import { TimePicker } from '/@/components/TimePicker';
import SelectDepartmentV2 from '/@/components/Form/src/components/SelectDepartmentV2.vue';
@@ -790,6 +793,7 @@
import { cloneDeep, random } from 'lodash-es';
import { uploadMultiApi } from '/@/api/sys/upload';
import { getFileList } from '/@/api/system/file';
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const { t } = useI18n();
export default defineComponent({
diff --git a/src/components/Form/src/components/Upload.vue b/src/components/Form/src/components/Upload.vue
index 28d53b4..a2148e1 100644
--- a/src/components/Form/src/components/Upload.vue
+++ b/src/components/Form/src/components/Upload.vue
@@ -69,6 +69,9 @@
点击上传
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -119,6 +122,7 @@
import { getAppEnvConfig } from '/@/utils/env';
import WebOfficeSDK from "/@/assets/libs/open-jssdk-v0.1.3.es.js";
import {getToken} from "/@/utils/auth";
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const props = defineProps({
value: String,
diff --git a/src/components/Import/src/ImportModal.vue b/src/components/Import/src/ImportModal.vue
index 98ebb70..1c2f9b3 100644
--- a/src/components/Import/src/ImportModal.vue
+++ b/src/components/Import/src/ImportModal.vue
@@ -14,6 +14,9 @@
只能上传Excel文件,且不能超过1G
将文件拖到此处,或点击上传
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
下载模板
@@ -32,7 +35,7 @@
importUrl: String,
data: Object,
});
-
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const title = ref('');
const fileList = ref();
const importType = ref('');
diff --git a/src/utils/env.ts b/src/utils/env.ts
index c67b0dd..c96ab0e 100644
--- a/src/utils/env.ts
+++ b/src/utils/env.ts
@@ -22,7 +22,7 @@ export function getAppEnvConfig() {
(import.meta.env as unknown as GlobEnvConfig)
: window[ENV_NAME as any]) as unknown as GlobEnvConfig;
- const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_APP_SHORT_NAME, VITE_GLOB_API_URL_PREFIX, VITE_GLOB_REQUEST_TIMEOUT, VITE_GLOB_UPLOAD_URL, VITE_GLOB_UPLOAD_PREVIEW, VITE_GLOB_OUT_LINK_URL, VITE_GLOB_REPORT_URL, VITE_GLOB_PRINT_BASE_URL, VITE_GLOB_TENANT_ENABLED,VITE_GLOB_TENANT_INPUT_REQUIRED } = ENV;
+ const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_APP_SHORT_NAME, VITE_GLOB_API_URL_PREFIX, VITE_GLOB_REQUEST_TIMEOUT, VITE_GLOB_UPLOAD_URL, VITE_GLOB_UPLOAD_PREVIEW, VITE_GLOB_OUT_LINK_URL, VITE_GLOB_REPORT_URL, VITE_GLOB_PRINT_BASE_URL, VITE_GLOB_TENANT_ENABLED,VITE_GLOB_TENANT_INPUT_REQUIRED,VITE_GLOB_UPLOAD_ALERT_TIP } = ENV;
if (!/^[a-zA-Z\_]*$/.test(VITE_GLOB_APP_SHORT_NAME)) {
warn(`VITE_GLOB_APP_SHORT_NAME Variables can only be characters/underscores, please modify in the environment variables and re-running.`);
@@ -40,7 +40,8 @@ export function getAppEnvConfig() {
VITE_GLOB_REPORT_URL,
VITE_GLOB_PRINT_BASE_URL,
VITE_GLOB_TENANT_ENABLED,
- VITE_GLOB_TENANT_INPUT_REQUIRED
+ VITE_GLOB_TENANT_INPUT_REQUIRED,
+ VITE_GLOB_UPLOAD_ALERT_TIP
};
}
diff --git a/src/views/generator/desktop/components/designer/properties/Dashboard.vue b/src/views/generator/desktop/components/designer/properties/Dashboard.vue
index 08d8174..5bef641 100644
--- a/src/views/generator/desktop/components/designer/properties/Dashboard.vue
+++ b/src/views/generator/desktop/components/designer/properties/Dashboard.vue
@@ -104,6 +104,9 @@
>
{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -242,6 +245,7 @@
import { getToken } from '/@/utils/auth';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const props = withDefaults(
defineProps<{
info: DashboardInfo;
diff --git a/src/views/generator/desktop/components/designer/properties/Image.vue b/src/views/generator/desktop/components/designer/properties/Image.vue
index fb09745..4495799 100644
--- a/src/views/generator/desktop/components/designer/properties/Image.vue
+++ b/src/views/generator/desktop/components/designer/properties/Image.vue
@@ -22,6 +22,9 @@
{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -37,6 +40,8 @@
import { useI18n } from '/@/hooks/web/useI18n';
import { getFileList } from '/@/api/system/file';
import { uploadMultiApi } from '/@/api/sys/upload';
+ import { getAppEnvConfig } from '/@/utils/env';
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const { t } = useI18n();
const props = withDefaults(
defineProps<{
diff --git a/src/views/mobileDesign/functionDesign/components/PropertyOption.vue b/src/views/mobileDesign/functionDesign/components/PropertyOption.vue
index adf101a..b81b68b 100644
--- a/src/views/mobileDesign/functionDesign/components/PropertyOption.vue
+++ b/src/views/mobileDesign/functionDesign/components/PropertyOption.vue
@@ -599,6 +599,9 @@
{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -947,6 +950,8 @@
import { useI18n } from '/@/hooks/web/useI18n';
import { getFileList } from '/@/api/system/file';
import { uploadMultiApi } from '/@/api/sys/upload';
+ import { getAppEnvConfig } from '/@/utils/env';
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const { t } = useI18n();
export default defineComponent({
name: 'PropertyOption',
diff --git a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue
index 6509b0a..1cbea4a 100644
--- a/src/views/system/dataMigration/components/import/ImportSystemConfig.vue
+++ b/src/views/system/dataMigration/components/import/ImportSystemConfig.vue
@@ -34,6 +34,9 @@
{{ t('将文件拖到此处,或') }}{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -48,7 +51,8 @@
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { useMessage } from '/@/hooks/web/useMessage';
-
+ import { getAppEnvConfig } from '/@/utils/env';
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
const props = defineProps({
importType: {
type:String,
diff --git a/src/views/workflow/design/ImportFlow.vue b/src/views/workflow/design/ImportFlow.vue
index a69ce9d..ad9158e 100644
--- a/src/views/workflow/design/ImportFlow.vue
+++ b/src/views/workflow/design/ImportFlow.vue
@@ -24,6 +24,9 @@
{{ t('将文件拖到此处,或') }}{{ t('点击上传') }}
+
+ {{VITE_GLOB_UPLOAD_ALERT_TIP}}
+
@@ -54,6 +57,7 @@
type: Boolean
},
});
+ const { VITE_GLOB_UPLOAD_ALERT_TIP } = getAppEnvConfig();
async function open() {
data.visible = true;
diff --git a/types/config.d.ts b/types/config.d.ts
index 9968e29..5f3be9f 100644
--- a/types/config.d.ts
+++ b/types/config.d.ts
@@ -167,6 +167,7 @@ export interface GlobEnvConfig {
VITE_GLOB_DISABLE_NEWS: boolean;
VITE_GLOB_CLOSE_ALERT_DISABLED: boolean;
VITE_GLOB_TENANT_INPUT_REQUIRED: boolean;
+ VITE_GLOB_UPLOAD_ALERT_TIP?: string;
}
export interface LogoConfig {