/** * 转换文件域名 * @param {Object} url 地址 */ export function fileUrlConvert(url) { let convertUrl = "" if (url.indexOf('http://10.42.6.251:8082') != -1) { convertUrl = url.replace('http://10.42.6.251:8082', 'https://sk.hubeishuiyi.cn/gminio') } else if (url.indexOf('http://10.10.2.251:8082') != -1) { convertUrl = url.replace('http://10.10.2.251:8082', 'https://sk.hubeishuiyi.cn/gminio') } else { convertUrl = url } return convertUrl }