diff --git a/.env.development b/.env.development index 54366d4..dec961a 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ NODE_ENV = 'development' # 本地环境接口地址 -VITE_API_URL = '/api' +VUE_APP_BASE_API = '/api' diff --git a/.env.production b/.env.production index 919d1bb..b2c0e64 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,5 @@ # 线上环境 NODE_ENV = "production" + +# 线上环境接口地址 +VUE_APP_BASE_API = '/api' diff --git a/.env.test b/.env.test index 1077f31..768f0ae 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,6 @@ # 测试环境 NODE_ENV = "test" + + +# 测试环境接口地址 +VUE_APP_BASE_API = '/api' diff --git a/index.html b/index.html index dca5870..8fe7e04 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,64 @@