fix: 修改生命周期拼写错误的bug

This commit is contained in:
MTrun
2021-11-08 12:56:53 +08:00
parent c33da92e63
commit 6346d04394
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "big-screen-vue-datav", "name": "big-screen-vue-datav",
"version": "1.5.0", "version": "1.5.1",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
+1 -1
View File
@@ -24,7 +24,7 @@ export default {
this.calcRate() this.calcRate()
window.addEventListener('resize', this.resize) window.addEventListener('resize', this.resize)
}, },
unMounted () { beforeDestroy () {
window.removeEventListener('resize', this.resize) window.removeEventListener('resize', this.resize)
}, },
methods: { methods: {
+1 -1
View File
@@ -127,7 +127,7 @@ export default {
this.timeFn() this.timeFn()
this.cancelLoading() this.cancelLoading()
}, },
unMounted() { beforeDestroy () {
clearInterval(this.timing) clearInterval(this.timing)
}, },
methods: { methods: {