张瑞宁 9 months ago
parent cdad8df137
commit adbca9fd27

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

@ -60,7 +60,7 @@ const PowerOnAuth: FC<PageProps> = ({ }) => {
// 在指定的目录下安装快捷方式
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",

@ -59,7 +59,7 @@ const CodeManage: FC<PageProps> = ({
// 在指定的目录下安装快捷方式
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",

@ -69,7 +69,7 @@ const CoreArea: FC<PageProps> = ({
// 在指定的目录下安装快捷方式
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",

@ -69,7 +69,7 @@ const DutyArea: FC<PageProps> = ({
// 在指定的目录下安装快捷方式
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",

@ -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,
};

Loading…
Cancel
Save