Explorar o código

消息设为已读

yangc %!s(int64=8) %!d(string=hai) anos
pai
achega
3d904e2d50
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)
             })