Fix(购物车):无数据占位图片无法显示

This commit is contained in:
lifizer
2024-02-29 11:05:12 +08:00
parent 017bb4a66a
commit 1c8bbc1d26
2 changed files with 5 additions and 14 deletions
+2 -9
View File
@@ -1,12 +1,10 @@
<template>
<view class="components-checkbox-icon jc-center ai-center" :class="{'isSelected':isSelected}" @click="change">
<image class="icon-hook" :src="webUrl+'/20240109175325131970.png'" mode="scaleToFill" v-if="isSelected"/>
<image class="icon-hook" :src="$VUE_APP_RESOURCES_URL+'/20240109175325131970.png'" mode="scaleToFill" v-if="isSelected"/>
</view>
</template>
<script setup>
import {VUE_APP_RESOURCES_URL} from '../config/index'
<script>
export default {
name: 'CheckboxIcon',
props: {
@@ -21,11 +19,6 @@ export default {
}
}
},
data() {
return {
webUrl: VUE_APP_RESOURCES_URL
}
},
computed: {
isSelected: function() {
return this.defaultState