diff --git a/src/views/index.vue b/src/views/index.vue index 3ddf91c..9e7c53a 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -105,8 +105,14 @@ export default { } }, toRoomNav() { - const linkSrc = process.env.VUE_APP_BASE_API - window.location.href = linkSrc + '/anchoring/initVenueNavigation.do?libcode=' + this.libcode + const linkSrc = process.env.NODE_ENV === 'production' ? window.g.ApiUrl : process.env.VUE_APP_BASE_API + if (this.libcode === '1201') { + // 东西湖 + window.location.href = linkSrc + '/anchoring/initVenueNavigation.do?libcode=' + this.libcode + } else { + // 江夏馆 http://192.168.3.5:8080/anchoring/goNavigation.do?libcode=1501 + window.location.href = linkSrc + '/anchoring/goNavigation.do?libcode=' + this.libcode + } }, // 首页 - 新书推荐 getNewBookList() {