fix: 加载 & 热重载

This commit is contained in:
AncTe committed 2024-04-20 19:49:21 +08:00
1 parent 938bd18808
commit 61b47929f6
3 files changed
+31 -6

No files matched your search

+1
View File
@@ -527,6 +527,7 @@ function watchProject() {
/_.*/
]
});
watcher.removeAllListeners();
watcher.on('change', async path => {
// 楼层热重载
if (/project(\/|\\)floors(\/|\\).*\.js$/.test(path)) {