feat: 增强 RemoteApp 支持用户名;更新 light-code 路由处理逻辑;优化 SyncBase 文件路径检查

This commit is contained in:
2026-03-05 02:45:51 +08:00
parent c2c6d4a7d3
commit 3b383639d6
4 changed files with 19 additions and 5 deletions

View File

@@ -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') {