refactor(core): CORE-04 scope initialization and make destruction reentrant-safe

This commit is contained in:
Harvey Zhao committed 2026-09-11 00:43:49 +08:00
1 parent 3e38dd0d19
commit 4eec8112fa
32 files changed
+2779 -189

No files matched your search

+3 -1
View File
@@ -1,3 +1,5 @@
import { getScope } from '../lifecycle/instance'
import { timeout } from '../lifecycle/resources'
import {
addClass,
append,
@@ -526,7 +528,7 @@ export default class Setting extends Component {
}
if (item.mounted) {
setTimeout(() => item.mounted.call(this.art, item.$item, item), 0)
timeout(getScope(this.art), () => item.mounted.call(this.art, item.$item, item), 0)
}
}