Commit 87d2611
committed
🐛 修复权限确认页 beforeunload 监听器泄漏
- 拆分 useEffect:beforeunload 注册与 getPermissionInfo 请求独立
- 提取命名 handler,在 cleanup 中 removeEventListener
- beforeunload effect 只依赖 [uuid],避免语言切换时重复注册
- .gitignore 忽略 .omc 本地开发目录
根据 PR #1328 @cyfung1031 评审意见处理1 parent 7da1b89 commit 87d2611
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
0 commit comments