直接通过计算属性修改即可 <img :src = "playStyle"> //写法1 const playStyle = computed(()=> playing.value ?require(`@/assets/img/player/play.svg