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);