From c5cde1ff5d5e26310e7a5e15f970db034efda7fa Mon Sep 17 00:00:00 2001 From: shengchanzhe <179998674@qq.com> Date: Thu, 28 Dec 2023 20:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production.example | 3 --- src/config/index.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .env.production.example diff --git a/.env.production.example b/.env.production.example deleted file mode 100644 index 1e1ea2b..0000000 --- a/.env.production.example +++ /dev/null @@ -1,3 +0,0 @@ -NODE_ENV = 'production' -# Base API -VITE_APP_BASE_URL='' \ No newline at end of file diff --git a/src/config/index.ts b/src/config/index.ts index cc6bfb3..03bbc36 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -2,7 +2,7 @@ const config = { terminal: 1, //终端 title: "后台管理系统", //网站默认标题 version: "1.6.0", //版本号 - baseUrl: `${import.meta.env.VITE_APP_BASE_URL || "https://ceshi-engineering.lihaink.cn"}/`, //请求接口域名 + baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ""}/`, //请求接口域名 urlPrefix: "adminapi", //请求默认前缀 timeout: 10 * 1000, //请求超时时长 };