Commit cb7b1657 by Joey

fix(@rbc/rbc-login): 登录页图片加载失败白屏

parent 3e3a0fea
......@@ -252,23 +252,26 @@ export default {
this.loginTitle = obj[0] && obj[0].title || this.loginTitle
bgImgCode
? this.getImgUrl(bgImgCode).then((url) => {
this.loginImageBg = url
this.imgLoading -= 1
})
this.loginImageBg = url
}).finally(() => {
this.imgLoading -= 1
})
: this.imgLoading -= 1
iconCode
? this.getImgUrl(iconCode).then((url) => {
this.loginIcon = url
this.imgLoading -= 1
})
this.loginIcon = url
}).finally(() => {
this.imgLoading -= 1
})
: this.imgLoading -= 1
const boxImgCode = obj[1] && obj[1].icon
this.titleColor = obj[1] && obj[1].ext1 || this.titleColor
boxImgCode
? this.getImgUrl(boxImgCode).then((url) => {
this.boxImgUrl = url
this.imgLoading -= 1
})
this.boxImgUrl = url
}).finally(() => {
this.imgLoading -= 1
})
: this.imgLoading -= 1
}).catch(() => {
this.imgLoading = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment