Demo:窗口大小改变后修改画布大小

This commit is contained in:
wanglin2 2023-04-05 09:55:39 +08:00
parent 633ed68f92
commit 52d094a7c7

View File

@ -126,6 +126,9 @@ export default {
this.$bus.$on('createAssociativeLine', () => {
this.mindMap.associativeLine.createLineFromActiveNode()
})
window.addEventListener('resize', () => {
this.mindMap.resize()
})
if (this.openTest) {
setTimeout(() => {
this.test()