Commit cb7b1657 by Joey

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

parent 3e3a0fea
...@@ -252,23 +252,26 @@ export default { ...@@ -252,23 +252,26 @@ export default {
this.loginTitle = obj[0] && obj[0].title || this.loginTitle this.loginTitle = obj[0] && obj[0].title || this.loginTitle
bgImgCode bgImgCode
? this.getImgUrl(bgImgCode).then((url) => { ? this.getImgUrl(bgImgCode).then((url) => {
this.loginImageBg = url this.loginImageBg = url
this.imgLoading -= 1 }).finally(() => {
}) this.imgLoading -= 1
})
: this.imgLoading -= 1 : this.imgLoading -= 1
iconCode iconCode
? this.getImgUrl(iconCode).then((url) => { ? this.getImgUrl(iconCode).then((url) => {
this.loginIcon = url this.loginIcon = url
this.imgLoading -= 1 }).finally(() => {
}) this.imgLoading -= 1
})
: this.imgLoading -= 1 : this.imgLoading -= 1
const boxImgCode = obj[1] && obj[1].icon const boxImgCode = obj[1] && obj[1].icon
this.titleColor = obj[1] && obj[1].ext1 || this.titleColor this.titleColor = obj[1] && obj[1].ext1 || this.titleColor
boxImgCode boxImgCode
? this.getImgUrl(boxImgCode).then((url) => { ? this.getImgUrl(boxImgCode).then((url) => {
this.boxImgUrl = url this.boxImgUrl = url
this.imgLoading -= 1 }).finally(() => {
}) this.imgLoading -= 1
})
: this.imgLoading -= 1 : this.imgLoading -= 1
}).catch(() => { }).catch(() => {
this.imgLoading = 0 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