feat(remote): 添加 CORS 中间件支持文件跨域访问
This commit is contained in:
@@ -12,7 +12,7 @@ log.initialize();
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
process.env.NOTEBOOK_ROOT = path.join(app.getPath('documents'), 'XCNote');
|
||||
process.env.NOTEBOOK_ROOT = path.join(app.getPath('documents'), 'XCDesktop');
|
||||
|
||||
if (!fs.existsSync(process.env.NOTEBOOK_ROOT)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user