Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -523,6 +523,11 @@ export default { | ... | @@ -523,6 +523,11 @@ export default { |
| 523 | // 设置标志位为 false,避免在刷新页面时再次显示提示框 | 523 | // 设置标志位为 false,避免在刷新页面时再次显示提示框 |
| 524 | showConfirmation = false; | 524 | showConfirmation = false; |
| 525 | }); | 525 | }); |
| 526 | + // 监听 resize 事件 | ||
| 527 | + window.addEventListener('resize', function () { | ||
| 528 | + state.detailModel = null; | ||
| 529 | + editor.closeModel(); | ||
| 530 | + }); | ||
| 526 | }) | 531 | }) |
| 527 | 532 | ||
| 528 | function handleActiveChange(name) { | 533 | function handleActiveChange(name) { |
| ... | @@ -983,6 +988,7 @@ export default { | ... | @@ -983,6 +988,7 @@ export default { |
| 983 | 988 | ||
| 984 | function onClickCanvas(e: myEvent) { | 989 | function onClickCanvas(e: myEvent) { |
| 985 | console.log('单击画布'); | 990 | console.log('单击画布'); |
| 991 | + state.detailModel = null; | ||
| 986 | editor.closeModel() | 992 | editor.closeModel() |
| 987 | } | 993 | } |
| 988 | 994 | ... | ... |
-
Please register or login to post a comment