Vue does the function of collecting goods in a mall.

<i :class="{"iconfont":true,"icon-shoucangxing":true,"shoucang":true,"active":isSelected}" @click="toggleCollect"></i>

isSelected:false

toggleCollect(){
   this.isSelected = !this.isSelected 
}
css:
.shoucang{
        font-size: 32px;
    }
    .shoucang.active{
        color: red;
    }

because the button has fixed class,iconfont, icon-shoucangxing and shoucang, when we click, we only need to switch active, while the other class is fixed. I have implemented it in accordance with the above method, and I have succeeded. I think there should be a simple way. I hope you can share the following.

Mar.21,2021

</i>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bc15-e80b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bc15-e80b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?