From e81668e2935c6888adfdb88bf5992745298fd3f4 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Wed, 7 Feb 2024 10:38:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=87=E6=8D=A2=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=20mock=20=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- .env.staging | 2 +- vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.production b/.env.production index 2e297725..08ef6ef2 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ # 生产环境自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' +VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' ## 路由模式 hash 或 html5 VITE_ROUTER_HISTORY = 'hash' diff --git a/.env.staging b/.env.staging index 001f3c14..f4ee26f1 100644 --- a/.env.staging +++ b/.env.staging @@ -1,7 +1,7 @@ # 预发布环境自定义的环境变量(命名必须以 VITE_ 开头) ## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径) -VITE_BASE_API = 'https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538/api/v1' +VITE_BASE_API = 'https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1' ## 路由模式 hash 或 html5 VITE_ROUTER_HISTORY = 'hash' diff --git a/vite.config.ts b/vite.config.ts index 57b1e9e4..03533ed1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,7 +35,7 @@ export default (configEnv: ConfigEnv): UserConfigExport => { /** 接口代理 */ proxy: { "/api/v1": { - target: "https://www.fastmock.site/mock/761e2dda2b8890ab86c928a74e8f6538", + target: "https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212", ws: true, /** 是否允许跨域 */ changeOrigin: true