Invalid vue cleanup timer

The

code is as follows. The timer is still running after jumping to the page

created(){
    this.interval()
},
beforeDestroy () {
    console.log("")
    clearInterval(this.interval)
},
methods: {
    interval(){
        setInterval(()=>{
            console.log("")
            this.loadList()
        },3000)
    },
}
Apr.25,2021

clears the reference to the timer, not the method

created(){
    this.interval()
},
beforeDestroy () {
    console.log('')
    clearInterval(this._inter)
},
methods: {
    interval(){
        this._inter = setInterval(()=>{
            console.log('')
            this.loadList()
        },3000)
    },
}
The parameter of the

clearInterval () method must be the ID value returned by setInterval () .
what you pass to it from this code snippet is a function that must not be cleared

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