feat: 增强 RemoteApp 支持用户名;更新 light-code 路由处理逻辑;优化 SyncBase 文件路径检查
This commit is contained in:
@@ -116,7 +116,10 @@ export class SyncBase {
|
||||
const syncList = syncKeys.map((key) => {
|
||||
const value = sync[key];
|
||||
const filepath = path.join(this.#dir, key); // 文件的路径
|
||||
if (filepath.includes('node_modules') || filepath.includes('.git')) {
|
||||
const dirs = path.dirname(filepath).split(path.sep);
|
||||
const hasGit = dirs.includes('.git');
|
||||
const hasNodeModules = dirs.includes('node_modules');
|
||||
if (hasGit || hasNodeModules) {
|
||||
return null;
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user