feat(remote): 添加 CORS 中间件支持文件跨域访问

This commit is contained in:
2026-03-09 17:27:47 +08:00
parent 92088e9c8a
commit 49bf8a97d2
22 changed files with 467 additions and 62 deletions

View File

@@ -140,7 +140,7 @@ var electronState = new ElectronState();
log2.initialize();
var __filename = fileURLToPath(import.meta.url);
var __dirname = path2.dirname(__filename);
process.env.NOTEBOOK_ROOT = path2.join(app.getPath("documents"), "XCNote");
process.env.NOTEBOOK_ROOT = path2.join(app.getPath("documents"), "XCDesktop");
if (!fs2.existsSync(process.env.NOTEBOOK_ROOT)) {
try {
fs2.mkdirSync(process.env.NOTEBOOK_ROOT, { recursive: true });

File diff suppressed because one or more lines are too long