Commit 7ec5eceb by panjiangyi

回复最新一条消息功能

parent 38c4ddaf
Showing with 7 additions and 7 deletions
......@@ -235,7 +235,8 @@ export default class ChatList extends Vue {
}
private parseMesage(data: ChatType) {
return parserMessage(data.msg_type, data.msg);
if (data.last_msg_content === "") return "[暂无消息]";
return parserMessage(data.last_msg_type, data.last_msg_content);
}
private formatTimestamp(v: number) {
......@@ -243,12 +244,9 @@ export default class ChatList extends Vue {
}
private goToDetail(model_name: string, keyvalue: string) {
// console.log("fuck", model_name, keyvalue, {
// ...this.$route.params,
// model_name,
// keyvalue,
// });
this.$router.push(`/${this.$route.params.project}/${this.$route.params.entrance}/detail/${model_name}/key/${keyvalue}`);
this.$router.push(
`/${this.$route.params.project}/${this.$route.params.entrance}/detail/${model_name}/key/${keyvalue}`
);
}
}
</script>
......
......@@ -18,6 +18,8 @@ export interface Chat {
join_msg_id: number;
last_read_msg_id: number;
biz_id: string;
last_msg_content: string;
last_msg_type: string;
business_data: {
model_name: string;
obj_id: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment