mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
3dc3dc6c13
@ -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