Commit 3d79d91d by liangjianmin

refactor(orderTrack): update file upload URL for environment-specific handling

- Modified the file upload URL to dynamically adjust based on the hostname, improving flexibility for different environments.
- Ensured consistent API endpoint management for file uploads across development and production settings.
parent e880de85
Showing with 3 additions and 1 deletions
......@@ -320,7 +320,9 @@
]
},
// 文件上传相关
uploadUrl: NODE_ENVS + '/uploadFile?sys_type=2',
uploadUrl: window.location.hostname === 'yunxin.liexindev.net'
? 'http://file.liexindev.net/uploadFile?sys_type=2'
: 'https://files.ichunt.net/uploadFile?sys_type=2',
fileData: {},
// 协议模板下载链接
agreementTemplateUrl: NODE_ENVS + '/api/attachment/downloadAttachmentTemplate?type=cooperation_agreement&token=' + Tool.getCookie('token'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment