diff --git a/.env.production b/.env.production index 756250e..f0c9ac6 100644 --- a/.env.production +++ b/.env.production @@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS = 'gzip' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false # 接口地址 可以由nginx做转发或者直接写实际地址 -VITE_GLOB_API_URL=http://10.0.252.5:3100/api +VITE_GLOB_API_URL=${location.origin}/api # 文件上传地址 可以由nginx做转发或者直接写实际地址 diff --git a/build/script/buildConf.ts b/build/script/buildConf.ts index 0c8089c..887b8e6 100644 --- a/build/script/buildConf.ts +++ b/build/script/buildConf.ts @@ -11,18 +11,18 @@ import { getConfigFileName } from '../getConfigFileName'; import pkg from '../../package.json'; interface CreateConfigParams { - configName: string; - config: any; - configFileName?: string; + configName: string; + config: any; + configFileName?: string; } function createConfig(params: CreateConfigParams) { - const { configName, config, configFileName } = params; - try { - const windowConf = `window.${configName}`; - // Ensure that the variable will not be modified - let configStr = `${windowConf}=${JSON.stringify(config)};`; - configStr += ` + const { configName, config, configFileName } = params; + try { + const windowConf = `window.${configName}`; + // Ensure that the variable will not be modified + let configStr = `${windowConf}=${JSON.stringify(config).replace(/:"([^"]+)"/g, ':`$1`')};`; + configStr += ` Object.freeze(${windowConf}); Object.defineProperty(window, "${configName}", { configurable: false, @@ -30,18 +30,18 @@ function createConfig(params: CreateConfigParams) { }); `.replace(/\s/g, ''); - fs.mkdirp(getRootPath(OUTPUT_DIR)); - writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr); + fs.mkdirp(getRootPath(OUTPUT_DIR)); + writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr); - console.log(colors.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`); - console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n'); - } catch (error) { - console.log(colors.red('configuration file configuration file failed to package:\n' + error)); - } + console.log(colors.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`); + console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n'); + } catch (error) { + console.log(colors.red('configuration file configuration file failed to package:\n' + error)); + } } export function runBuildConfig() { - const config = getEnvConfig(); - const configFileName = getConfigFileName(config); - createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME }); + const config = getEnvConfig(); + const configFileName = getConfigFileName(config); + createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME }); } diff --git a/src/views/actHiTaskinst/components/ActhitaskinstModal.vue b/src/views/actHiTaskinst/components/ActHiTaskinstModal.vue similarity index 100% rename from src/views/actHiTaskinst/components/ActhitaskinstModal.vue rename to src/views/actHiTaskinst/components/ActHiTaskinstModal.vue diff --git a/src/views/auditOpt/auditRecord/components/auditRecordModal.vue b/src/views/auditOpt/auditRecord/components/AuditRecordModal.vue similarity index 100% rename from src/views/auditOpt/auditRecord/components/auditRecordModal.vue rename to src/views/auditOpt/auditRecord/components/AuditRecordModal.vue diff --git a/src/views/formChange/formChangeLog/components/FormchangelogModal.vue b/src/views/formChange/formChangeLog/components/FormChangeLogModal.vue similarity index 100% rename from src/views/formChange/formChangeLog/components/FormchangelogModal.vue rename to src/views/formChange/formChangeLog/components/FormChangeLogModal.vue diff --git a/src/views/system/group/index.vue b/src/views/system/group/index.vue index 9e87f1e..8c65b85 100644 --- a/src/views/system/group/index.vue +++ b/src/views/system/group/index.vue @@ -1,505 +1,452 @@ diff --git a/src/views/system/systemConfig/components/SystemconfigModal.vue b/src/views/system/systemConfig/components/SystemConfigModal.vue similarity index 100% rename from src/views/system/systemConfig/components/SystemconfigModal.vue rename to src/views/system/systemConfig/components/SystemConfigModal.vue diff --git a/src/views/system/systemNotice/components/SystemnoticeModal.vue b/src/views/system/systemNotice/components/SystemNoticeModal.vue similarity index 100% rename from src/views/system/systemNotice/components/SystemnoticeModal.vue rename to src/views/system/systemNotice/components/SystemNoticeModal.vue