fix: 移除test环境示例

This commit is contained in:
chansee97 2025-08-19 23:15:31 +08:00
parent 501b64e884
commit 79501a53f0
5 changed files with 3 additions and 15 deletions

View File

@ -1,2 +1,2 @@
# 是否开启服务接口代理 Y | N
VITE_HTTP_PROXY=Y
VITE_HTTP_PROXY=N

View File

@ -1,6 +0,0 @@
# 是否开启压缩资源
VITE_BUILD_COMPRESS=N
# 压缩算法 gzip | brotliCompress | deflate | deflateRaw
VITE_COMPRESS_TYPE=gzip

View File

@ -38,11 +38,9 @@
],
"scripts": {
"dev": "vite --mode dev --port 9980",
"dev:test": "vite --mode test",
"dev:prod": "vite --mode prod",
"build": "vite build --mode prod",
"build:dev": "vite build --mode dev",
"build:test": "vite build --mode test",
"preview": "vite preview --port 9981",
"lint": "eslint . && vue-tsc --noEmit",
"lint:fix": "eslint . --fix",

View File

@ -1,10 +1,7 @@
/** 不同请求服务的环境配置 */
export const serviceConfig: Record<ServiceEnvType, Record<string, string>> = {
dev: {
url: 'https://mock.apifox.cn/m1/4071143-0-default',
},
test: {
url: 'https://mock.apifox.cn/m1/4071143-0-default',
url: 'http://localhost:3000',
},
prod: {
url: 'https://mock.apifox.cn/m1/4071143-0-default',

View File

@ -1,10 +1,9 @@
/**
*
* - dev: 后台开发环境
* - test: 后台测试环境
* - prod: 后台生产环境
*/
type ServiceEnvType = 'dev' | 'test' | 'prod'
type ServiceEnvType = 'dev' | 'prod'
interface ImportMetaEnv {
/** 项目基本地址 */