Compatibility issues in Firfox

The

page has a switch, using the vue switch switch component, which can be used in Google browser, but Firefox is not compatible. An error is reported under Firefox "event is not defined"

.

Vue.component ("tMutual switchgear, {

)
props: {
    itemData: {
        type: Object,
        default: function () {
            return {
            }
        }
    }
},
template: `<div class="switch switch-inline" style="height: 20px">
    <input type="checkbox" v-model="switch.is_open" v-on:change="switchClick(itemData)">
    <label></label>
</div>`,
methods:{
    switchClick:function (row) {
        var el = event.currentTarget;
        if (el.checked) {
            status = 1
        } else {
            status = 2
        }
        TourismLoading.show();
        $.get("url", {
            id: row.id,
            is_open: status
        }, function (request) {
            TourismLoading.hide();
            if (parseInt(request.code) === 0) {
                success("");
            } else {
                error(request.message);
                return false;
            }
        })
    }
},
computed:{
    switch(){
        var _self = this;
        if(_self.itemData.is_open == 2){
            _self.itemData.is_open = 0;
        }
        return _self.itemData;
    }
}

});

how can we make him compatible? after trying some methods on the Internet, we can"t all

Jun.01,2021

official website example:

<button v-on:click="warn('Form cannot be submitted yet.', $event)">
  Submit
</button>
// ...
methods: {
  warn: function (message, event) {
    // 
    if (event) event.preventDefault()
    alert(message)
  }
}

v-on:change='switchClick(itemData,$event)'

add event object to

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