直接通过计算属性修改即可
<img :src = "playStyle">
//写法1
const playStyle = computed(()=>
playing.value ?require(`@/assets/img/player/play.svg`)
:require(`@/assets/img/player/stop.svg`) )
//写法2
computed:{
playStyle(){
根据某个变化的值变换不同src值---->动态修改src只能用require
return changeValue? require(img1):require(img2)
}
}