Browse Source

消息设为已读

yangc 7 years ago
parent
commit
3d904e2d50
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/mobile/center/Message.vue

+ 2 - 1
components/mobile/center/Message.vue

@@ -28,6 +28,7 @@
 </template>
 <script>
   import { RemindBox, PullUp, EmptyStatus } from '~components/mobile/common'
+  import config from '../../../nuxt.config'
   export default {
     data () {
       return {
@@ -88,7 +89,7 @@
           }
         })
         if (ids.length !== 0) {
-          this.$http.post(`${process.env.MESSAGE_URL}/messages/read`, {receiverUu: this.user.data.userUU, receiverEnuu: this.user.data.enterprise.uu, messageId: ids.join(','), consumerApp: 'MALL'})
+          this.$http.post(`${config.env.messageUrl}/messages/read`, {receiverUu: this.user.data.userUU, receiverEnuu: this.user.data.enterprise.uu, messageId: ids.join(','), consumerApp: 'MALL'})
             .then((res) => {
               console.log(res.data)
             })