fix: 修改 diagram tooltip的时间 未跟panel一致的问题

This commit is contained in:
zhangyu
2021-07-16 09:56:48 +08:00
parent 9ae70267bf
commit c5be6b8143
4 changed files with 34 additions and 6 deletions

View File

@@ -826,6 +826,13 @@ export default {
temp.search()
}, 1000)
},
searchTime: {
immediate: true,
deep: true,
handler (n) {
localStorage.setItem('panelTime', JSON.stringify(n))
}
},
$route: {
immediate: true,
handler () {
@@ -852,6 +859,7 @@ export default {
if (this.scrollbarWrap) {
this.scrollbarWrap.removeEventListener('scroll', bus.debounce)
};
localStorage.removeItem('panelTime')
}
}
</script>