diff --git a/src/pages/InitialSystem/PowerOnAuth/index.tsx b/src/pages/InitialSystem/PowerOnAuth/index.tsx index 36b8598..71d5d91 100644 --- a/src/pages/InitialSystem/PowerOnAuth/index.tsx +++ b/src/pages/InitialSystem/PowerOnAuth/index.tsx @@ -60,7 +60,7 @@ const PowerOnAuth: FC = ({ }) => { // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { - const response = await fetch('http://127.0.0.1:3000/createShortcut', { + const response = await fetch('http://localhost:3000/createShortcut', { method: 'POST', headers: { 'Content-Type': 'application/json' }, mode: "cors", diff --git a/src/pages/InstallExe/exeDialog/CodeManage.tsx b/src/pages/InstallExe/exeDialog/CodeManage.tsx index 42c567f..9160b36 100644 --- a/src/pages/InstallExe/exeDialog/CodeManage.tsx +++ b/src/pages/InstallExe/exeDialog/CodeManage.tsx @@ -59,7 +59,7 @@ const CodeManage: FC = ({ // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { - const response = await fetch('http://127.0.0.1:3000/createShortcut', { + const response = await fetch('http://localhost:3000/createShortcut', { method: 'POST', headers: { 'Content-Type': 'application/json' }, mode: "cors", diff --git a/src/pages/InstallExe/exeDialog/CoreArea.tsx b/src/pages/InstallExe/exeDialog/CoreArea.tsx index fb4a8a9..e2cb199 100644 --- a/src/pages/InstallExe/exeDialog/CoreArea.tsx +++ b/src/pages/InstallExe/exeDialog/CoreArea.tsx @@ -69,7 +69,7 @@ const CoreArea: FC = ({ // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { - const response = await fetch('http://127.0.0.1:3000/createShortcut', { + const response = await fetch('http://localhost:3000/createShortcut', { method: 'POST', headers: { 'Content-Type': 'application/json' }, mode: "cors", diff --git a/src/pages/InstallExe/exeDialog/DutyArea.tsx b/src/pages/InstallExe/exeDialog/DutyArea.tsx index e1dd3f5..0ba8b5b 100644 --- a/src/pages/InstallExe/exeDialog/DutyArea.tsx +++ b/src/pages/InstallExe/exeDialog/DutyArea.tsx @@ -69,7 +69,7 @@ const DutyArea: FC = ({ // 在指定的目录下安装快捷方式 const installSuccess = async () => { try { - const response = await fetch('http://127.0.0.1:3000/createShortcut', { + const response = await fetch('http://localhost:3000/createShortcut', { method: 'POST', headers: { 'Content-Type': 'application/json' }, mode: "cors", diff --git a/src/utils/env/dev.ts b/src/utils/env/dev.ts index 7c2e493..1be4909 100644 --- a/src/utils/env/dev.ts +++ b/src/utils/env/dev.ts @@ -6,7 +6,7 @@ export const DEV = { // 更新到线上屏蔽上面内容开放下面内容 PROXY_SERVER: 'http://127.0.0.1:8088', - LOCAL_URL: 'http://127.0.0.1:8000', + LOCAL_URL: 'http://127.0.0.1:8080', FILE_URL: '/home/headless/Desktop', HARD_CODE: true, };