微调样式、修复异常

This commit is contained in:
tangly1024
2022-12-08 16:33:36 +08:00
parent 6b7e35da8f
commit 1054503b11
3 changed files with 10 additions and 6 deletions

View File

@@ -62,8 +62,10 @@ const WalineComponent = (props) => {
}
return () => {
waline.destroy()
waline = null
if (waline) {
waline.destroy()
waline = null
}
router.events.off('routeChangeComplete', updateWaline)
}
}, [])