From 668f391ac9f5d0781e4329784aa0b1239c5316fd 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, 18 Jan 2024 15:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/InstallExe/exeDialog/CoreArea.tsx | 36 ++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/InstallExe/exeDialog/CoreArea.tsx b/src/pages/InstallExe/exeDialog/CoreArea.tsx index a457e8b..5949087 100644 --- a/src/pages/InstallExe/exeDialog/CoreArea.tsx +++ b/src/pages/InstallExe/exeDialog/CoreArea.tsx @@ -48,24 +48,24 @@ const CoreArea: FC = ({ // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { - const response = await fetch('http://localhost:3000/createShortcut', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - mode: "cors", - body: JSON.stringify({ - folderPath: `C:/Users/lyc/Desktop/${countType[urlParams?.fileType]}`, - shortcutName: '专用核心密码综合管理系统', - shortcutURL: `http://localhost:8000/initialSystem/${urlParams?.fileType}` - }), - }); - const data = await response.text(); - message.success(data) - - // 储存信息 - let installExe: any = localStorage.getItem('installExe') - let obj = JSON.parse(installExe); - obj[9].select = true; - localStorage.setItem('installExe', JSON.stringify(obj)); + // const response = await fetch('http://localhost:3000/createShortcut', { + // method: 'POST', + // headers: { 'Content-Type': 'application/json' }, + // mode: "cors", + // body: JSON.stringify({ + // folderPath: `C:/Users/lyc/Desktop/${countType[urlParams?.fileType]}`, + // shortcutName: '专用核心密码综合管理系统', + // shortcutURL: `http://localhost:8000/initialSystem/${urlParams?.fileType}` + // }), + // }); + // const data = await response.text(); + // message.success(data) + + // // 储存信息 + // let installExe: any = localStorage.getItem('installExe') + // let obj = JSON.parse(installExe); + // obj[9].select = true; + // localStorage.setItem('installExe', JSON.stringify(obj)); onCancel() } catch (error) {