Event.currentTarget is also reported as an error in the subsequent operation of null,.

  <button class="cancle_follow" :class="{followed:isFollow}" @click="addFollowSeller($event)"></button>
  addFollowSeller:function(event){
         app.isFollow = true;
       console.log(event.currentTarget);
        event.currentTarget.innerHTML = ""
        // event.currentTarget.value
   
                }

the following is the error message for console

null at newCarDetail.html : 428
Uncaught TypeError: Cannot set property "innerHTML" of null at newCarDetail.html : 429 

it is possible to write to a html page alone

Mar.05,2021

Why do you vue use DOM's innerHTML to operate
this may be to operate when the virtual DOM change has not yet operated the real DOM can not measure your value, so it is null

<button class="cancle_follow" :class="{followed:isFollow}" @click="addFollowSeller($event)">{{xxx}}</button>

data(){
    xxx:''
},
methods:{
  ///xxx
  this.xxx = ''
}


vue
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-1c22dcc-15b62.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-1c22dcc-15b62.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?