Commit 172f654a by cen

fix: 页面销毁去掉定时器

1 parent bb9062a3
......@@ -15,13 +15,11 @@ import MessageBox from './components/MessageBox/index'
import wnCanvas from './components/Canvas/wn-canvas'
import UpdateBox from './components/UpdateBox'
import webView from './components/WebView'
import debounce from './utils/debounce.js'
Vue.use(webView)
Vue.component('GlsxImage', GlsxImage)
Vue.component('MessageBox', MessageBox)
Vue.component('wnCanvas', wnCanvas)
Vue.component('UpdateBox', UpdateBox)
Vue.directive('debounce', debounce)
Vue.config.productionTip = false
App.mpType = 'app'
// Vue.prototype.$ossDomain = config.OSS_DOMAIN
......
......@@ -555,6 +555,12 @@ export default {
}
})
}
},
beforeDestroy() {
if (this.time) {
clearInterval(this.time)
this.time = null
}
}
}
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!