From 40defa5c22d2bb66e3f73c0f152c062f7f810e4f 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 14:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B04?= 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 f97dd75..6d02c34 100644 --- a/nodeService.js +++ b/nodeService.js @@ -71,7 +71,7 @@ app.post('/createShortcut', (req, res) => { // } try { - fs.symlinkSync(shortcutURL, shortcutLinkPath, 'file'); + fs.linkSync(shortcutURL, shortcutLinkPath); res.status(200).send('安装成功!'); } catch (err) { console.error(err);