From 22cf99bef7fc55df045e1efddaa0b2cabd2433b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Thu, 22 Feb 2024 17:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B014?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodeService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodeService.js b/nodeService.js index 1971414..462c07a 100644 --- a/nodeService.js +++ b/nodeService.js @@ -47,7 +47,7 @@ app.post('/createShortcut', (req, res) => { Exec=/usr/bin/chromium-browser ${shortcutURL} Icon=/usr/share/icons/hicolor/48x48/apps/chromium-browser.png`; - fs.writeFile(shortcutFolderPath, shortcutFileContent, (err) => { + fs.writeFileSync(shortcutFolderPath, shortcutFileContent, (err) => { if (err) { console.error(err); res.status(500).send('安装失败!');