Compare commits

..

No commits in common. "26d3efd3462fa10b28d2d2ba13f456d21d985652" and "753e4ee6aa7150c46cdcff5509de127553468f81" have entirely different histories.

12 changed files with 8 additions and 79 deletions

View File

@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址 # 网关地址
VUE_APP_GATEWAY_URL="/dev-api" VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址 # UE4服务地址
VUE_APP_PALYER_URL="172.16.0.77:8080" VUE_APP_PALYER_URL="192.168.1.66:8080"
# 服务地址 # 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081" VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行 # 服务前-- 请严格遵守格式 不允许换行

View File

@ -1,19 +0,0 @@
#开发环境
NODE_ENV:"development"
# 页面标题
VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址
VUE_APP_PALYER_URL="192.168.1.66:8080"
# 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL="http://192.168.1.66:8084/"

View File

@ -1,21 +0,0 @@
#开发环境
NODE_ENV:"development"
# 页面标题
VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址
VUE_APP_PALYER_URL="172.16.0.77:8080"
# 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL=""
# nginx路径
PUB_PATH:'/trainingbase/'

View File

@ -1,21 +0,0 @@
#开发环境
NODE_ENV:"production"
# 页面标题
VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址
VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址
VUE_APP_PALYER_URL="192.168.1.66:8080"
# 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行
VUE_APP_SERVICE_PREFIX= '{"knowledge":"/knowledge","system":"/system"}'
# 是否显示全部菜单
VUE_APP_ALL_MENU = false
# 微前端地址
VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址
VUE_APP_EXPOSES_URL="http://192.168.1.66:8084/"
# nginx路径
PUB_PATH:'/dev/trainingbase/'

View File

@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址 # 网关地址
VUE_APP_GATEWAY_URL="/dev-api" VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址 # UE4服务地址
VUE_APP_PALYER_URL="172.16.0.77:8080" VUE_APP_PALYER_URL="192.168.1.66:8080"
# 服务地址 # 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081" VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行 # 服务前-- 请严格遵守格式 不允许换行
@ -17,5 +17,3 @@ VUE_APP_ALL_MENU = false
VUE_APP_REMOTES_URL="http://119.45.158.12/common/" VUE_APP_REMOTES_URL="http://119.45.158.12/common/"
# 当前应用部署地址 # 当前应用部署地址
VUE_APP_EXPOSES_URL="" VUE_APP_EXPOSES_URL=""
# nginx路径
PUB_PATH:'/trainingbase/'

View File

@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
# 网关地址 # 网关地址
VUE_APP_GATEWAY_URL="/dev-api" VUE_APP_GATEWAY_URL="/dev-api"
# UE4服务地址 # UE4服务地址
VUE_APP_PALYER_URL="172.16.0.77:8080" VUE_APP_PALYER_URL="192.168.1.66:8080"
# 服务地址 # 服务地址
VUE_APP_BASE_API_URL="http://192.168.2.3:8081" VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
# 服务前-- 请严格遵守格式 不允许换行 # 服务前-- 请严格遵守格式 不允许换行

View File

@ -4,11 +4,8 @@
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve --mode development", "serve": "vue-cli-service serve --mode development",
"local": "vue-cli-service serve --mode developmentLocal --port 8084",
"serveGY": "vue-cli-service serve --mode developmentGY", "serveGY": "vue-cli-service serve --mode developmentGY",
"build": "vue-cli-service build --mode production", "build": "vue-cli-service build --mode production",
"buildProdLocal": "vue-cli-service build --mode prodLocal",
"buildProd": "vue-cli-service build --mode prod",
"test": "vue-cli-service build --mode test", "test": "vue-cli-service build --mode test",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },

View File

@ -11,10 +11,10 @@ const routes: Array<RouteConfig> = [
{ {
path: '/', path: '/',
name: 'index', name: 'index',
redirect:"/home", redirect:"/wit-park",
}, },
{ {
path: '/home', path: '/wit-park',
name: 'indexComponent', name: 'indexComponent',
component:OverviewComponent component:OverviewComponent
}, },

View File

@ -17,7 +17,7 @@ export default class PlayerUtils{
}, },
ui:{ ui:{
startupInfo:false, startupInfo:false,
mainUI:false mainUI:true
}, },
events: { events: {

View File

@ -152,8 +152,7 @@ export default class BaseComponent extends Vue {
const options = layer.data.map((item,index)=>{ const options = layer.data.map((item,index)=>{
const option = {} as any const option = {} as any
if(item.hasPop && !item.model){ if(item.hasPop && !item.model){
const path = process.env.NODE_ENV === 'production'? process.env.PUB_PATH : '/' option.popupURL = "http://192.168.1.66:8084/#/popup?"+new URLSearchParams(layer.popData)
option.popupURL = "http://192.168.1.66"+path+"#/popup?"+new URLSearchParams(layer.popData)
} }
return Object.assign(option,{ return Object.assign(option,{
id:item.id, id:item.id,

View File

@ -14,7 +14,6 @@ import PermitPopUpComponent from "@/components/permitPopUp.component.vue";
import WarningDetailComponent from "@/components/warningDetail.component.vue"; import WarningDetailComponent from "@/components/warningDetail.component.vue";
@Component({ @Component({
components: { components: {
HomeLeftComponent, HomeLeftComponent,

View File

@ -6,9 +6,6 @@ const resolve = (dir)=>{
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
module.exports = defineConfig({ module.exports = defineConfig({
publicPath: process.env.NODE_ENV === 'production'
? process.env.PUB_PATH
: './',
productionSourceMap:process.env.NODE_ENV!=="production", productionSourceMap:process.env.NODE_ENV!=="production",
transpileDependencies: true, transpileDependencies: true,
lintOnSave: true, // 在保存时校验格式 lintOnSave: true, // 在保存时校验格式