mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1aa67a5f2c
@ -89,16 +89,13 @@ module.exports = (cli) => {
|
||||
|
||||
watcher
|
||||
.on('ready', () => {
|
||||
console.log('Initial scan complete.');
|
||||
isReady = true;
|
||||
})
|
||||
.on('addDir', async (pathname) => {
|
||||
console.log('addDir....', isReady);
|
||||
if (!isReady) return;
|
||||
restartClient();
|
||||
})
|
||||
.on('unlinkDir', async (pathname) => {
|
||||
console.log('unlinkDir....', isReady);
|
||||
if (!isReady) return;
|
||||
restartClient();
|
||||
});
|
||||
|
@ -58,16 +58,13 @@ module.exports = (cli) => {
|
||||
|
||||
watcher
|
||||
.on('ready', () => {
|
||||
console.log('Initial scan complete.');
|
||||
isReady = true;
|
||||
})
|
||||
.on('addDir', async (pathname) => {
|
||||
console.log('addDir....', isReady);
|
||||
if (!isReady) return;
|
||||
restart();
|
||||
})
|
||||
.on('unlinkDir', async (pathname) => {
|
||||
console.log('unlinkDir....', isReady);
|
||||
if (!isReady) return;
|
||||
restart();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user