diff --git a/.env.development b/.env.development index 92d720b..598ea52 100644 --- a/.env.development +++ b/.env.development @@ -1,8 +1,11 @@ # 页面标题 -VITE_APP_TITLE = 中科云 +VITE_APP_TITLE=中科云 # 开发环境配置 -VITE_APP_ENV = 'development' +VITE_APP_ENV='development' # 若依管理系统/开发环境 -VITE_APP_BASE_API = '/dev-api' +VITE_APP_BASE_API='/dev-api' + +# i18n语言 +VITE_APP_I18N_LOCALE='zh_CN' diff --git a/.env.production b/.env.production index 9c0294d..571cf69 100644 --- a/.env.production +++ b/.env.production @@ -1,11 +1,14 @@ # 页面标题 -VITE_APP_TITLE = 中科云 +VITE_APP_TITLE=中科云 # 生产环境配置 -VITE_APP_ENV = 'production' +VITE_APP_ENV='production' # 若依管理系统/生产环境 -VITE_APP_BASE_API = '/api' +VITE_APP_BASE_API='/api' # 是否在打包时开启压缩,支持 gzip 和 brotli -VITE_BUILD_COMPRESS = gzip \ No newline at end of file +VITE_BUILD_COMPRESS=gzip + +# i18n +VITE_APP_I18N_LOCALE=zh_CN \ No newline at end of file diff --git a/.env.staging b/.env.staging index f911064..8c8736c 100644 --- a/.env.staging +++ b/.env.staging @@ -8,4 +8,7 @@ VITE_APP_ENV = 'staging' VITE_APP_BASE_API = '/stage-api' # 是否在打包时开启压缩,支持 gzip 和 brotli -VITE_BUILD_COMPRESS = gzip \ No newline at end of file +VITE_BUILD_COMPRESS = gzip + +# i18n语言 +VITE_APP_I18N_LOCALE='zh_CN' \ No newline at end of file diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 618cae6..56a7e4e 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -15,18 +15,22 @@ ref="upload" > - 选取文件 + + {{ t("common.selectFile") }} +
- 请上传 + {{ t("admin.validation.pleaseUpload") }} - 的文件 + {{ t("admin.validation.file") }}
{{ getFileName(file.name) }}
- 删除 + {{ t("common.delete") }} +
@@ -55,7 +63,9 @@