From 8006a2af55aa47c36583d434ef5ecdc763dd13bf Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Sun, 8 Oct 2023 14:43:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E7=9A=84=20mock=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 1 - .env.staging | 1 - vite.config.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/.env.production b/.env.production index 9b53b449..2e297725 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,6 @@ # 生产环境自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -# VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' ## 路由模式 hash 或 html5 diff --git a/.env.staging b/.env.staging index 47f66ac0..001f3c14 100644 --- a/.env.staging +++ b/.env.staging @@ -1,7 +1,6 @@ # 预发布环境自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -# VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' ## 路由模式 hash 或 html5 diff --git a/vite.config.ts b/vite.config.ts index 9a1fb860..0212e34b 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -37,7 +37,6 @@ export default (configEnv: ConfigEnv): UserConfigExport => { /** 接口代理 */ proxy: { "/api/v1": { - // target: "https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212", target: "https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538", ws: true, /** 是否允许跨域 */