src/components/mkPicture/index.jsx
@@ -44,7 +44,18 @@ checkUrl = (url) => { let img = new Image() img.addEventListener('error', this.loadHandler) img.src = url if (/^https/.test(window.location.protocol)) { // https转换 if (/^http:/.test(url)) { img.src = url.replace(/^http:/, 'https:') } else if (/^\/\//.test(url)) { img.src = 'https:' + url } else { img.src = url } } else { img.src = url } } loadHandler = (e) => {