This commit is contained in:
liaoboping 2025-09-17 20:53:12 +08:00
parent e6cd43373c
commit 7d405680d1
4 changed files with 3 additions and 5 deletions

View File

@ -2,4 +2,3 @@ NODE_ENV=development
VUE_APP_PREVIEW=true
VUE_APP_API_BASE_URL=/api
VUE_APP_API_URL=http://192.168.0.189:8099
VUE_APP_MAPVIEW_URL = ws://192.168.0.189:8099

3
public/config.js vendored
View File

@ -5,8 +5,7 @@ window._CONFIG = {
TerrainProviderUrl: '/map/mapTerrain/',
thirdLoginUrl: 'http://127.0.0.1:8080/thirdLogin',
clientId: '0123456789',
evaluationSrc: 'http://127.0.0.1:8000',
evaluationSrc: 'http://192.168.0.189:8088/thirdLogin/thirdLoginPage?username=admin',
VUE_APP_API_URL: 'http://192.168.0.189:8099',
VUE_APP_WEBSOCKET_URL: 'ws://192.168.0.189:8099',
VUE_APP_MAPVIEW_URL:'ws://192.168.0.189:8099'
}

View File

@ -13,7 +13,7 @@ NProgress.configure({ showSpinner: false }) // NProgress Configuration
const allowList = ['thirdLogin', 'login', 'register', 'registerResult'] // no redirect allowList
const loginRoutePath = '/user/login'
const defaultRoutePath = '/user/thirdLogin'
const defaultRoutePath = '/user/welcome'
router.beforeEach((to, from, next) => {
NProgress.start() // start progress bar

View File

@ -97,7 +97,7 @@ export default {
initWebSocket() {
//
this.ws = new WebSocket(window._CONFIG.VUE_APP_MAPVIEW_URL+`/ws/${this.scenarioId}/${this.homeId}`)
this.ws = new WebSocket(window._CONFIG.VUE_APP_WEBSOCKET_URL+`/ws/${this.scenarioId}/${this.homeId}`)
//
this.ws.onopen = () => {