Browse Source

党群议事页面调整

master
liuchuang 6 years ago
parent
commit
507bfd1bf7
  1. 6
      public/index.html
  2. 3
      src/views/main-sidebar.vue

6
public/index.html

@ -33,13 +33,13 @@
<!-- 开发环境 --> <!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://219.146.91.110:9094/epdc-api' window.SITE_CONFIG['apiURL'] = 'http://localhost:9094/epdc-api'
</script> </script>
<% } %> <% } %>
<!-- 集成测试环境 --> <!-- 集成测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://219.146.91.110:9094' window.SITE_CONFIG['apiURL'] = 'http://219.146.91.110:9094/epdc-api'
</script> </script>
<% } %> <% } %>
<!-- 验收测试环境 --> <!-- 验收测试环境 -->
@ -51,7 +51,7 @@
<!-- 生产环境 --> <!-- 生产环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'https://epdc-api.elinkchina.com.cn' window.SITE_CONFIG['apiURL'] = 'https://epdc-api.elinkchina.com.cn/epdc-api'
</script> </script>
<% } %> <% } %>
</head> </head>

3
src/views/main-sidebar.vue

@ -99,6 +99,9 @@ export default {
console.log('Connected: ' + frame) console.log('Connected: ' + frame)
let topic = '/userMenuNotice/menuNoticeQueue/menu/getResponse' let topic = '/userMenuNotice/menuNoticeQueue/menu/getResponse'
this.stompClient.subscribe(topic, this.onSubscribe) this.stompClient.subscribe(topic, this.onSubscribe)
//
this.$http.get('/events/epdcevents/initMenuNotice').then(({ data: res }) => {}).catch(() => {
})
}, },
onSubscribe (value) { onSubscribe (value) {
this.pid = 0 this.pid = 0

Loading…
Cancel
Save