fix: 修复启动页面图片配置路径问题

This commit is contained in:
小莫唐尼 2024-06-25 10:50:20 +08:00
parent a85131308c
commit e5590c0a22

View File

@ -41,7 +41,7 @@
</view>
<view class="user-info__container flex flex-col flex-center">
<image class="user-info__avatar" :src="startConfig.logo" mode="aspectFill"></image>
<image class="user-info__avatar" :src="$utils.checkImageUrl(startConfig.logo)" mode="aspectFill"></image>
<view class="user-info__nick-name"> {{ startConfig.title }} </view>
</view>
@ -72,7 +72,7 @@ export default {
},
pageStyle() {
if (this.startConfig.bg) {
const _bg = this.$utils.checkIsUrl(this.startConfig.bg) ? `url(${this.startConfig.bg})` : this
const _bg = this.$utils.checkIsUrl(this.startConfig.bg) ? `url(${this.$utils.checkImageUrl(this.startConfig.bg)})` : this
.startConfig.bg;
return {
background: _bg + '!important'