Browse Source

1.关闭微前端模式

2.忽略getImosSdkJs
3.添加地图地址
master
DIAMOND 1 year ago
parent
commit
9617b9a4d5
  1. 3
      .env
  2. 4
      .env.development
  3. 20
      .env.production
  4. 2
      index.html
  5. 4
      vite.config.ts

3
.env

@ -2,7 +2,6 @@
VITE_PORT = 3200 VITE_PORT = 3200
# 网站标题 # 网站标题
# VITE_GLOB_APP_TITLE = 企业级低代码平台
VITE_GLOB_APP_TITLE=边海防智能监控站 VITE_GLOB_APP_TITLE=边海防智能监控站
# 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符 # 简称,用于配置文件名字 不要出现空格、数字开头等特殊字符
@ -15,7 +14,7 @@ VITE_GLOB_APP_CAS_BASE_URL=http://cas.test.com:8443/cas
VITE_GLOB_APP_OPEN_SSO = false VITE_GLOB_APP_OPEN_SSO = false
# 开启微前端模式 # 开启微前端模式
VITE_GLOB_APP_OPEN_QIANKUN=true VITE_GLOB_APP_OPEN_QIANKUN=fasle
# 文件预览地址 # 文件预览地址
VITE_GLOB_ONLINE_VIEW_URL=http://fileview.jeecg.com/onlinePreview VITE_GLOB_ONLINE_VIEW_URL=http://fileview.jeecg.com/onlinePreview

4
.env.development

@ -14,7 +14,7 @@ VITE_PUBLIC_PATH = /
# 跨域代理,您可以配置多个 ,请注意,没有换行符 # 跨域代理,您可以配置多个 ,请注意,没有换行符
# VITE_PROXY = [["/jeecgboot","http://localhost:8088/military"],["/upload","http://localhost:3300/upload"]] # VITE_PROXY = [["/jeecgboot","http://localhost:8088/military"],["/upload","http://localhost:3300/upload"]]
VITE_PROXY = [["/dt","http://192.168.1.174:8088/dt"],["/upload","http://localhost:3300/upload"]] VITE_PROXY = [["/dt","http://192.168.1.50:8088/dt"],["/upload","http://localhost:3300/upload"]]
# 控制台不输出 # 控制台不输出
VITE_DROP_CONSOLE = false 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://localhost:8088/jmilitary
VITE_GLOB_DOMAIN_URL=http://192.168.1.174:8088/dt VITE_GLOB_DOMAIN_URL=http://192.168.1.50:8088/dt
# 接口前缀 # 接口前缀
VITE_GLOB_API_URL_PREFIX= VITE_GLOB_API_URL_PREFIX=

20
.env.production

@ -7,10 +7,10 @@
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
### ###
# 是否启用mock # 是否启用mock
VITE_USE_MOCK = true VITE_USE_MOCK = false
# 发布路径 # 发布路径
VITE_PUBLIC_PATH = / VITE_PUBLIC_PATH = ./
# 控制台不输出 # 控制台不输出
VITE_DROP_CONSOLE = true VITE_DROP_CONSOLE = true
@ -24,10 +24,10 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
#后台接口父地址(必填) #后台接口父地址(必填)
VITE_GLOB_API_URL=http://192.168.1.174:8088/dt/ VITE_GLOB_API_URL=http://192.168.1.50:8088/dt/
#后台接口全路径地址(必填) #后台接口全路径地址(必填)
VITE_GLOB_DOMAIN_URL=http://192.168.1.174:8088/dt/ VITE_GLOB_DOMAIN_URL=http://192.168.1.50:8088/dt/
# 接口父路径前缀 # 接口父路径前缀
VITE_GLOB_API_URL_PREFIX= VITE_GLOB_API_URL_PREFIX=
@ -40,3 +40,15 @@ VITE_USE_PWA = false
# 是否兼容旧浏览器 # 是否兼容旧浏览器
VITE_LEGACY = false VITE_LEGACY = false
#地图地址
VITE_GLOB_EARTHMAP_URL=http://192.168.1.50:8088/dt/
#地图地址-卫星
VITE_GLOB_SATELLITE_URL=/mapTile/satellite_ny/
#地图地址-矢量
VITE_GLOB_VECTOR_URL=/mapTile/vector_ny/
#地图地址-地形
VITE_GLOB_TERRAIN_URL=/mapTile/terrain_ny/
#静态资源
#VITE_GLOB_STATICDOMAIN_URL=VITE_GLOB_DOMAIN_URL + '/sys/common/static'

2
index.html

@ -11,7 +11,7 @@
<script src="<%= BASE_URL %>earthsdk/XbsjEarth/XbsjEarth.js"></script> <script src="<%= BASE_URL %>earthsdk/XbsjEarth/XbsjEarth.js"></script>
<script src="<%= BASE_URL %>earthsdk/XbsjEarthUI/xbsj.js"></script> <script src="<%= BASE_URL %>earthsdk/XbsjEarthUI/xbsj.js"></script>
<script src="<%= BASE_URL %>earthsdk/XbsjCesium/Cesium.js"></script> <script src="<%= BASE_URL %>earthsdk/XbsjCesium/Cesium.js"></script>
<script type="text/javascript" src="<%= BASE_URL %>military/third/api/getImosSdkJs"></script> <!-- <script type="text/javascript" src="<%= BASE_URL %>military/third/api/getImosSdkJs"></script> -->
<link rel="stylesheet" href="<%= BASE_URL %>earthsdk/XbsjCesium/Widgets/widgets.css"> <link rel="stylesheet" href="<%= BASE_URL %>earthsdk/XbsjCesium/Widgets/widgets.css">
<script src="<%= BASE_URL %>js/d3kit/libs/cesium-d3kit.js"></script> <script src="<%= BASE_URL %>js/d3kit/libs/cesium-d3kit.js"></script>
<title><%= title %></title> <title><%= title %></title>

4
vite.config.ts

@ -32,11 +32,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
const isBuild = command === 'build'; const isBuild = command === 'build';
return { return {
// base: VITE_PUBLIC_PATH, base: VITE_PUBLIC_PATH,
// base: process.env.ELECTRON =="true" ? path.join(__dirname, // base: process.env.ELECTRON =="true" ? path.join(__dirname,
// './dist' // './dist'
// ) : VITE_PUBLIC_PATH, // ) : VITE_PUBLIC_PATH,
base: './' , // base: './' ,
// base: path.join(__dirname,'./dist'), // base: path.join(__dirname,'./dist'),
// publicDir: OUTPUT_DIR, // publicDir: OUTPUT_DIR,
root, root,

Loading…
Cancel
Save