Browse Source

修改跳转地址

master
YUJT 3 years ago
parent
commit
0f807554a8
  1. 4
      public/index.html
  2. 3
      src/views/main-index.vue

4
public/index.html

@ -34,13 +34,13 @@
window.SITE_CONFIG['iframeBaseUrl'] = 'https://epdc-shibei.elinkservice.cn/epmet-oper-gov/#/main'
// window.SITE_CONFIG['iframeBaseUrl'] = 'http://120.27.18.76/epmet-oper-gov/#/main'
window.SITE_CONFIG['iframeDigitUrl'] = 'https://epdc-shibei.elinkservice.cn/epmet-oper-gov/#/main-shuju/visual-basicinfo-basicInfoMain'
// window.SITE_CONFIG['iframeDigitUrl'] = 'http://120.27.18.76/epmet-oper-gov/#/main/base-resi'
// window.SITE_CONFIG['iframeDigitUrl'] = 'http://120.27.18.76/epmet-oper-gov/#/main-shuju/visual-basicinfo-basicInfoMain'
</script>
<!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>
window.SITE_CONFIG['apiURL'] = 'https://epdc-shibei.elinkservice.cn/epdc-api'
window.SITE_CONFIG['apiURL'] = 'https://epdc-shibei-test.elinkservice.cn/epdc-api'
</script>
<% } %>
<!-- 集成测试环境 -->

3
src/views/main-index.vue

@ -57,7 +57,8 @@ export default {
},
goNewUrl () {
// window.location.replace(`http://120.27.18.76/epmet-oper-gov/#/main/base-resi?token=${Cookies.get('token')}`)
window.open(`${window.SITE_CONFIG['iframeBaseUrl']}?token=${Cookies.get('token')}`)
// window.open(`https://epdc-shibei.elinkservice.cn/epmet-oper-gov/#/main-shuju/visual-basicinfo-basicInfoMain?token=${Cookies.get('token')}`)
window.open(`${window.SITE_CONFIG['iframeDigitUrl']}?token=${Cookies.get('token')}`)
}
}
}

Loading…
Cancel
Save