diff --git a/.env.production b/.env.production index 9b53b44..2e29772 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 47f66ac..001f3c1 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 9a1fb86..0212e34 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, /** 是否允许跨域 */