Browse Source

统一env

master
DIAMOND 1 year ago
parent
commit
5f899a5eaf
  1. 4
      .env.development
  2. 6
      .env.production
  3. 2
      .gitignore
  4. 10
      package.json

4
.env.development

@ -14,7 +14,7 @@ VITE_PUBLIC_PATH = /
# 跨域代理,您可以配置多个 ,请注意,没有换行符
# VITE_PROXY = [["/jeecgboot","http://localhost:8088/military"],["/upload","http://localhost:3300/upload"]]
VITE_PROXY = [["/dt","http://192.168.1.50:8088/dt"],["/upload","http://localhost:3300/upload"]]
VITE_PROXY = [["/dt","http://127.0.0.1:8088/dt"],["/upload","http://localhost:3300/upload"]]
# 控制台不输出
VITE_DROP_CONSOLE = false
@ -24,7 +24,7 @@ VITE_GLOB_API_URL=/dt
#后台接口全路径地址(必填)
# VITE_GLOB_DOMAIN_URL=http://localhost:8088/jmilitary
VITE_GLOB_DOMAIN_URL=http://192.168.1.50:8088/dt
VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8088/dt
# 接口前缀
VITE_GLOB_API_URL_PREFIX=

6
.env.production

@ -24,10 +24,10 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填)
VITE_GLOB_API_URL=http://192.168.1.50:8088/dt/
VITE_GLOB_API_URL=http://127.0.0.1:8088/dt/
#后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://192.168.1.50:8088/dt/
VITE_GLOB_DOMAIN_URL=http://127.0.0.1:8088/dt/
# 接口父路径前缀
VITE_GLOB_API_URL_PREFIX=
@ -43,7 +43,7 @@ VITE_LEGACY = false
#地图地址
VITE_GLOB_EARTHMAP_URL=http://192.168.1.50:8088/dt/
VITE_GLOB_EARTHMAP_URL=http://127.0.0.1:8088/dt/
#地图地址-卫星
VITE_GLOB_SATELLITE_URL=/mapTile/satellite_ny/
#地图地址-矢量

2
.gitignore

@ -14,6 +14,8 @@ tests/server/static/upload
.env.local
.env.*.local
.eslintcache
.env.development.local
.env.production.local
# Log files
npm-debug.log*

10
package.json

@ -1,16 +1,16 @@
{
"name": "jeecgboot-vue3",
"name": "边海防智能监控站",
"version": "3.5.1",
"author": {
"name": "jeecg",
"email": "jeecgos@163.com",
"url": "https://github.com/jeecgboot/jeecgboot-vue3"
"name": "中光学",
"email": "zgx@163.com"
},
"description":"边海防智能监控站",
"main": "electron/electron.js",
"build": {
"appId": "com.my-website.my-app",
"productName": "MyApp",
"copyright": "Copyright © 2022 ${author}",
"copyright": "Copyright © 2024 ${author}",
"mac": {
"category": "public.app-category.utilities"
},

Loading…
Cancel
Save