写成这样也可以
:src="`./src/assets/ScreenLeft/btn${isShowLeft ? 'Show' : 'Hide'}.png`"
为了节省开销,这种小图标,可以用i标签
const imgUrl = ref("icon1");
<i
class="w-50px h-50px"
:style="{
backgroundImage: `url(./src/views/DataTest/VideoManage/${imgUrl}.png)`,
}"
></i>