配置文件修改
parent
f025491cb6
commit
295dd86068
|
@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
|
|||
# 网关地址
|
||||
VUE_APP_GATEWAY_URL="/dev-api"
|
||||
# UE4服务地址
|
||||
VUE_APP_PALYER_URL="192.168.1.66:8080"
|
||||
VUE_APP_PALYER_URL="172.16.0.77:8080"
|
||||
# 服务地址
|
||||
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
|
||||
# 服务前-- 请严格遵守格式 不允许换行
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#开发环境
|
||||
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/"
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
#开发环境
|
||||
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/'
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
#开发环境
|
||||
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/'
|
|
@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
|
|||
# 网关地址
|
||||
VUE_APP_GATEWAY_URL="/dev-api"
|
||||
# UE4服务地址
|
||||
VUE_APP_PALYER_URL="192.168.1.66:8080"
|
||||
VUE_APP_PALYER_URL="172.16.0.77:8080"
|
||||
# 服务地址
|
||||
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
|
||||
# 服务前-- 请严格遵守格式 不允许换行
|
||||
|
|
|
@ -6,7 +6,7 @@ VUE_APP_TITLE = 汉邦唐消防训练基地
|
|||
# 网关地址
|
||||
VUE_APP_GATEWAY_URL="/dev-api"
|
||||
# UE4服务地址
|
||||
VUE_APP_PALYER_URL="192.168.1.66:8080"
|
||||
VUE_APP_PALYER_URL="172.16.0.77:8080"
|
||||
# 服务地址
|
||||
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
|
||||
# 服务前-- 请严格遵守格式 不允许换行
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve --mode development",
|
||||
"local": "vue-cli-service serve --mode developmentLocal --port 8084",
|
||||
"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",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
|
|
|
@ -4,8 +4,8 @@ import router from './router'
|
|||
import store from './store'
|
||||
import ElementUI from 'element-ui';
|
||||
import 'element-ui/lib/theme-chalk/index.css';
|
||||
import SvgComponent from "hbt-common/components/common/svg.component.vue"
|
||||
import EchartsComponent from "hbt-common/components/common/echarts.component.vue"
|
||||
import SvgComponent from "hbt-common/components/svg.component.vue"
|
||||
import EchartsComponent from "hbt-common/components/echarts.component.vue"
|
||||
import "@/assets/common/icons";
|
||||
import 'animate.css';
|
||||
import Mock from "mockjs"
|
||||
|
|
|
@ -6,7 +6,7 @@ interface ActionResult<T> {
|
|||
/**
|
||||
* message: 错误消息
|
||||
*/
|
||||
msg: string;
|
||||
message: string;
|
||||
/**
|
||||
* data: 数据
|
||||
*/
|
||||
|
|
|
@ -11,10 +11,10 @@ const routes: Array<RouteConfig> = [
|
|||
{
|
||||
path: '/',
|
||||
name: 'index',
|
||||
redirect:"/wit-park",
|
||||
redirect:"/home",
|
||||
},
|
||||
{
|
||||
path: '/wit-park',
|
||||
path: '/home',
|
||||
name: 'indexComponent',
|
||||
component:OverviewComponent
|
||||
},
|
||||
|
|
|
@ -17,7 +17,7 @@ export default class PlayerUtils{
|
|||
},
|
||||
ui:{
|
||||
startupInfo:false,
|
||||
mainUI:true
|
||||
mainUI:false
|
||||
},
|
||||
|
||||
events: {
|
||||
|
|
|
@ -151,8 +151,9 @@ export default class BaseComponent extends Vue {
|
|||
if(!layer.ids.length){
|
||||
const options = layer.data.map((item,index)=>{
|
||||
const option = {} as any
|
||||
if(item.hasPop){
|
||||
option.popupURL = "http://192.168.1.20:8081/#/popup?"+new URLSearchParams(layer.popData)
|
||||
if(item.hasPop && !item.model){
|
||||
const path = process.env.NODE_ENV === 'production'? process.env.PUB_PATH : '/'
|
||||
option.popupURL = "http://192.168.1.66"+path+"#/popup?"+new URLSearchParams(layer.popData)
|
||||
}
|
||||
return Object.assign(option,{
|
||||
id:item.id,
|
||||
|
|
|
@ -108,7 +108,7 @@ export default class OverViewComponent extends BaseComponent {
|
|||
this.emitCarPop(currentData)
|
||||
}
|
||||
if(data.GroupID==="video"){
|
||||
this.openVideo(currentData)
|
||||
// this.openVideo(currentData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,9 @@ const resolve = (dir)=>{
|
|||
return path.join(__dirname, dir)
|
||||
}
|
||||
module.exports = defineConfig({
|
||||
publicPath: process.env.NODE_ENV === 'production'
|
||||
? process.env.PUB_PATH
|
||||
: './',
|
||||
productionSourceMap:process.env.NODE_ENV!=="production",
|
||||
transpileDependencies: true,
|
||||
lintOnSave: true, // 在保存时校验格式
|
||||
|
|
Loading…
Reference in New Issue