From 6c8d57a4da507edba53e904d609cc13b9112dd7f Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Thu, 12 Jun 2025 13:59:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- .env.production | 4 ++-- .env.staging | 12 ------------ index.html | 3 --- package.json | 4 ++-- public/config.ts | 0 src/config/index.ts | 2 +- src/layout/index.vue | 5 +++++ src/locales/index.ts | 4 ++-- src/utils/route.ts | 19 +++++++++++++++---- src/views/dashboard/message/index.vue | 3 +++ vite-env.d.ts | 3 ++- vite.config.ts | 20 ++++++++++++-------- 13 files changed, 46 insertions(+), 37 deletions(-) delete mode 100644 .env.staging delete mode 100644 public/config.ts diff --git a/.env.development b/.env.development index 484d42d..37bfb7f 100644 --- a/.env.development +++ b/.env.development @@ -5,5 +5,5 @@ VITE_APP_TITLE=里派基础框架 VITE_APP_ENV='development' # 开发环境 -VITE_API_BASE='/dev-api' -VITE_WS_URL='/dev-api' +VITE_API_BASE='https://dev.api.leapy.cn/merchant/' +VITE_WS_URL='wss://dev.api.leapy.cn/mms' diff --git a/.env.production b/.env.production index 9f099c7..dc93818 100644 --- a/.env.production +++ b/.env.production @@ -5,8 +5,8 @@ VITE_APP_TITLE=里派基础框架 VITE_APP_ENV='production' # 生产环境 -VITE_API_BASE='/prod-api' -VITE_WS_URL='/prod-api' +VITE_API_BASE='https://dev.api.leapy.cn/merchant/' +VITE_WS_URL='wss://dev.api.leapy.cn/mms' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS=gzip diff --git a/.env.staging b/.env.staging deleted file mode 100644 index 9cd962f..0000000 --- a/.env.staging +++ /dev/null @@ -1,12 +0,0 @@ -# 页面标题 -VITE_APP_TITLE=里派基础框架 - -# 生产环境配置 -VITE_APP_ENV='staging' - -# 生产环境 -VITE_API_BASE='/staging-api' -VITE_WS_URL='/staging-api' - -# 是否在打包时开启压缩,支持 gzip 和 brotli -VITE_BUILD_COMPRESS=gzip diff --git a/index.html b/index.html index f0bdb4b..9748664 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,6 @@ %VITE_APP_TITLE% -