diff --git a/common/http.api.js b/common/http.api.js index c257473..fab5570 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -140,8 +140,8 @@ const install = (Vue, vm) => { isread(){ return vm.$u.post("/message/isread") }, - messageInfo(){ - return vm.$u.post("/message/messageInfo") + messageInfo({id}){ + return vm.$u.post("/message/messageInfo",{id}) } } diff --git a/pages/messages/info.vue b/pages/messages/info.vue index 07fd8f7..8f71b39 100644 --- a/pages/messages/info.vue +++ b/pages/messages/info.vue @@ -7,7 +7,7 @@ {{ list.addtime }} - {{ list.content }} + {{ list.summary }} @@ -30,7 +30,7 @@ informationList(){ console.log(this.id) this.$u.api.messageInfo({id:this.id}).then((res)=>{ - + this.list = res.data console.log(res); })