Commit f166324d by panjiangyi

查看然后关闭会话列表

parent d92327de
Showing with 6 additions and 1 deletions
...@@ -225,7 +225,7 @@ export default class ChatList extends Vue { ...@@ -225,7 +225,7 @@ export default class ChatList extends Vue {
}).finally(this.raiseChatIdChanged); }).finally(this.raiseChatIdChanged);
this.showChat(); this.showChat();
this.$emit("close"); this.close();
this.saveChatTitle(info.uniplatId); this.saveChatTitle(info.uniplatId);
} }
...@@ -243,10 +243,15 @@ export default class ChatList extends Vue { ...@@ -243,10 +243,15 @@ export default class ChatList extends Vue {
return formatTime(v, { short: true, rule: TimeFormatRule.Hour12 }); return formatTime(v, { short: true, rule: TimeFormatRule.Hour12 });
} }
private close() {
this.$emit("close");
}
private goToDetail(model_name: string, keyvalue: string) { private goToDetail(model_name: string, keyvalue: string) {
this.$router.push( this.$router.push(
`/${this.$route.params.project}/${this.$route.params.entrance}/detail/${model_name}/key/${keyvalue}` `/${this.$route.params.project}/${this.$route.params.entrance}/detail/${model_name}/key/${keyvalue}`
); );
this.close();
} }
} }
</script> </script>
......
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