From 3efddb6dbef38db717459bf32c440930bf282f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Wed, 21 Feb 2024 16:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B0=83=E8=AF=950?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes/index.ts | 4 ++-- src/utils/env/dev.ts | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/config/routes/index.ts b/config/routes/index.ts index 5a6e3f2..a02bba7 100644 --- a/config/routes/index.ts +++ b/config/routes/index.ts @@ -1,6 +1,6 @@ const routes = [ - { path: '/', redirect: '/index', }, // 本地跑时为了方便先使用这个 - // { path: '/', redirect: '/404', }, // 后续上线时开放 + // { path: '/', redirect: '/index', }, // 本地跑时为了方便先使用这个 + { path: '/', redirect: '/404', }, // 后续上线时开放 // 桌面 { path: '/index', name: '桌面', component: '@/pages/index', layout: false }, diff --git a/src/utils/env/dev.ts b/src/utils/env/dev.ts index b2f76d9..1be4909 100644 --- a/src/utils/env/dev.ts +++ b/src/utils/env/dev.ts @@ -1,9 +1,14 @@ export const DEV = { - PROXY_SERVER: 'http://localhost:8088', - // PROXY_SERVER: 'http://127.0.0.1:8088', - LOCAL_URL: 'http://localhost:8000', - FILE_URL: 'C:/Users/lyc/Desktop', // 快捷方式储存的路径 - HARD_CODE: false, // 是否写死接口的请求地址() + // PROXY_SERVER: 'http://localhost:8088', // 后端接口地址 + // LOCAL_URL: 'http://localhost:8000', // 当前项目跑起来的端口地址 + // FILE_URL: 'C:/Users/lyc/Desktop', // 快捷方式储存的路径 + // HARD_CODE: false, // 是否写死接口的请求地址() + + // 更新到线上屏蔽上面内容开放下面内容 + PROXY_SERVER: 'http://127.0.0.1:8088', + LOCAL_URL: 'http://127.0.0.1:8080', + FILE_URL: '/home/headless/Desktop', + HARD_CODE: true, }; export default DEV;