problem description
Today in the project, I wanted to destroy the exit of the keep-alive page, but I found an error when I used this.$destroy (). At first, I thought it was the configuration of the framework, but then a vue-cli environment was deployed, and the same is true.
the environmental background of the problems and what methods you have tried
Environment: vue init webpack-simple
Click the H2 tag in hello world and you will get an error
related codes
< template >
< div class= "hello" >
<h1>{{ msg }}</h1>
<h2 @click="desotry()">Essential Links</h2>
< / div >
< / template >
< script >
export default {
name: "HelloWorld",
data() {
return {
msg: "Welcome to Your Vue.js App"
}
},
mounted () {
},
methods: {
desotry(){
this.$destory();
}
}
}
< / script >
what result do you expect? What is the error message actually seen?
I took a look at the contents of this, there is no $destory, but $forceUpdate and $nextTick are good, I hope someone can read it, thank you!