全新UI视觉体验,移动端API优化降低重复调用,提高并发6倍,修复N多Bug

This commit is contained in:
stivepeim
2021-06-11 17:41:16 +08:00
parent 0b9f28fa52
commit b76840e10f
582 changed files with 35633 additions and 28276 deletions

View File

@@ -85,11 +85,11 @@ export function setDomain(url) {
url = url ? url.toString() : '';
// 正则替换存在的转义符
url = url.replace(/\\/g,'');
url = url.replace('http://','https://');
url = window.location.protocol==='https:'? url.replace('http://','https://') : url;
if(url.startsWith('src="')){
url = url.replaceAll('src="','');
}
if(url.startsWith('//img')){
if(url.startsWith('//img') && window.location.protocol==='https:'){
url = url.replace('//img','https://img');
}
return url;