update error handling
This commit is contained in:
1 parent
c30ef07d29
commit
6e3a62f8e6
6 files changed
+48
-10
No files matched your search
@@ -13,7 +13,7 @@
|
||||
<div
|
||||
v-for="(conversation, conversationIndex) in conversations"
|
||||
:key="conversationIndex"
|
||||
class="conversation"
|
||||
:class="{ conversation: true, active: conversation.id === conversationId }"
|
||||
@click="onClick(conversation.id)"
|
||||
>
|
||||
<div class="icons">
|
||||
@@ -84,6 +84,9 @@ export default defineComponent({
|
||||
props: {},
|
||||
emits: ['click'],
|
||||
computed: {
|
||||
conversationId() {
|
||||
return this.$route.params?.id?.toString();
|
||||
},
|
||||
conversations() {
|
||||
return this.$store.state.chat.conversations;
|
||||
},
|
||||
@@ -156,6 +159,11 @@ export default defineComponent({
|
||||
color: #666;
|
||||
cursor: pointer;
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.icons {
|
||||
width: 30px;
|
||||
padding-left: 10px;
|
||||
|
||||
Reference in new issue
Block a user