Compare commits
4 Commits
753e4ee6aa
...
26d3efd346
Author | SHA1 | Date |
---|---|---|
|
26d3efd346 | |
|
a7dd8fba62 | |
|
88bee2f2a0 | |
|
295dd86068 |
|
@ -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="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"
|
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"
|
VUE_APP_GATEWAY_URL="/dev-api"
|
||||||
# UE4服务地址
|
# 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"
|
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
|
||||||
# 服务前-- 请严格遵守格式 不允许换行
|
# 服务前-- 请严格遵守格式 不允许换行
|
||||||
|
@ -17,3 +17,5 @@ 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/'
|
|
@ -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="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"
|
VUE_APP_BASE_API_URL="http://192.168.2.3:8081"
|
||||||
# 服务前-- 请严格遵守格式 不允许换行
|
# 服务前-- 请严格遵守格式 不允许换行
|
||||||
|
|
|
@ -4,8 +4,11 @@
|
||||||
"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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,10 +11,10 @@ const routes: Array<RouteConfig> = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'index',
|
name: 'index',
|
||||||
redirect:"/wit-park",
|
redirect:"/home",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/wit-park',
|
path: '/home',
|
||||||
name: 'indexComponent',
|
name: 'indexComponent',
|
||||||
component:OverviewComponent
|
component:OverviewComponent
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default class PlayerUtils{
|
||||||
},
|
},
|
||||||
ui:{
|
ui:{
|
||||||
startupInfo:false,
|
startupInfo:false,
|
||||||
mainUI:true
|
mainUI:false
|
||||||
},
|
},
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
|
|
|
@ -152,7 +152,8 @@ 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){
|
||||||
option.popupURL = "http://192.168.1.66:8084/#/popup?"+new URLSearchParams(layer.popData)
|
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,{
|
return Object.assign(option,{
|
||||||
id:item.id,
|
id:item.id,
|
||||||
|
|
|
@ -14,6 +14,7 @@ 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,
|
||||||
|
|
|
@ -6,6 +6,9 @@ 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, // 在保存时校验格式
|
||||||
|
|
Loading…
Reference in New Issue