vue 点击切换图标
<div @click="showImg" class="showSearch">
<img class="header_img" v-if="!showSearch" src="~@/assets/images/board/btn-select-black.png"/>
<img class="header_img" v-if="showSearch" src="~@/assets/images/board/btn-select-blue.png"/>
</div>
showSearch:false,
showImg () {
this.showSearch = ! this.showSearch;
},
越努力越幸运