diff --git a/components/DialogueList.vue b/components/DialogueList.vue index 4ed0c0f..802f344 100644 --- a/components/DialogueList.vue +++ b/components/DialogueList.vue @@ -2,9 +2,9 @@ .dialogue-list .post(v-for="item in data", :key="item._id") .left - .avatar + img.avatar(:src="item.user.avatar") .right - .name Last + .name {{ item.user.name }} .message {{ item.data }} diff --git a/pages/chat/index.vue b/pages/chat/index.vue index 9b04ce5..6748f47 100644 --- a/pages/chat/index.vue +++ b/pages/chat/index.vue @@ -17,7 +17,6 @@ button.submit(@click="submit") 发表 - -