fix: optimize https protocol warning

This commit is contained in:
reco_luan 2020-01-21 16:15:36 +08:00
parent 766d18b8ca
commit dca6b3d00c

View File

@ -93,7 +93,7 @@ export default {
const { logo, email } = info
if (logo && /^http/.test(logo)) return logo
if (logo && !/^http/.test(logo)) return this.$withBase(logo)
return `http://1.gravatar.com/avatar/${this.getMd5(email || '')}?s=50&d=mm&r=x`
return `//1.gravatar.com/avatar/${this.getMd5(email || '')}?s=50&d=mm&r=x`
},
_adjustPosition (dom) {
const { offsetWidth } = document.body