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
|
watcher
|
||||||
.on('ready', () => {
|
.on('ready', () => {
|
||||||
console.log('Initial scan complete.');
|
|
||||||
isReady = true;
|
isReady = true;
|
||||||
})
|
})
|
||||||
.on('addDir', async (pathname) => {
|
.on('addDir', async (pathname) => {
|
||||||
console.log('addDir....', isReady);
|
|
||||||
if (!isReady) return;
|
if (!isReady) return;
|
||||||
restartClient();
|
restartClient();
|
||||||
})
|
})
|
||||||
.on('unlinkDir', async (pathname) => {
|
.on('unlinkDir', async (pathname) => {
|
||||||
console.log('unlinkDir....', isReady);
|
|
||||||
if (!isReady) return;
|
if (!isReady) return;
|
||||||
restartClient();
|
restartClient();
|
||||||
});
|
});
|
||||||
|
@ -58,16 +58,13 @@ module.exports = (cli) => {
|
|||||||
|
|
||||||
watcher
|
watcher
|
||||||
.on('ready', () => {
|
.on('ready', () => {
|
||||||
console.log('Initial scan complete.');
|
|
||||||
isReady = true;
|
isReady = true;
|
||||||
})
|
})
|
||||||
.on('addDir', async (pathname) => {
|
.on('addDir', async (pathname) => {
|
||||||
console.log('addDir....', isReady);
|
|
||||||
if (!isReady) return;
|
if (!isReady) return;
|
||||||
restart();
|
restart();
|
||||||
})
|
})
|
||||||
.on('unlinkDir', async (pathname) => {
|
.on('unlinkDir', async (pathname) => {
|
||||||
console.log('unlinkDir....', isReady);
|
|
||||||
if (!isReady) return;
|
if (!isReady) return;
|
||||||
restart();
|
restart();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user