放在事件下边
this.$once('hook:beforeDestroy', () => {
this
.$once(
'hook:beforeDestroy'
, () => {
clearInterval(timer);
})