From adbca9fd27d7342cadd565da1510004687af4745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=91=9E=E5=AE=81?= <3134191406@qq.com> Date: Wed, 21 Feb 2024 19:51:27 +0800 Subject: [PATCH] gx --- nodeService.js | 2 +- src/pages/InitialSystem/PowerOnAuth/index.tsx | 2 +- src/pages/InstallExe/exeDialog/CodeManage.tsx | 2 +- src/pages/InstallExe/exeDialog/CoreArea.tsx | 2 +- src/pages/InstallExe/exeDialog/DutyArea.tsx | 2 +- src/utils/env/dev.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nodeService.js b/nodeService.js index 04303f3..9f0ca8a 100644 --- a/nodeService.js +++ b/nodeService.js @@ -5,7 +5,7 @@ const cors = require('cors'); const bodyParser = require('body-parser'); const app = express(); -const port = 8080; // 可以根据需要修改端口号 +const port = 8081; // 可以根据需要修改端口号 app.use(cors()); app.use(bodyParser.json()); diff --git a/src/pages/InitialSystem/PowerOnAuth/index.tsx b/src/pages/InitialSystem/PowerOnAuth/index.tsx index 7152ce6..84c7614 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:8080/createShortcut', { + const response = await fetch('http://127.0.0.1:8081/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 5de13a1..27de7be 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:8080/createShortcut', { + const response = await fetch('http://127.0.0.1:8081/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 269490b..99fbd69 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:8080/createShortcut', { + const response = await fetch('http://127.0.0.1:8081/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 d0fa233..76aeeca 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:8080/createShortcut', { + const response = await fetch('http://127.0.0.1:8081/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 1be4909..ebf8cd4 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:8080', + LOCAL_URL: 'http://127.0.0.1:8081', FILE_URL: '/home/headless/Desktop', HARD_CODE: true, };