/** * http转https */ const toHttps = (url)=>{ if(url.indexOf('http')>-1 && url.indexOf('https') == -1){ url = url.replace('http', 'https'); } return url; } export default { toHttps }