|
@@ -165,7 +165,13 @@ export default {
|
|
|
},
|
|
|
switchConversation(conversation) {
|
|
|
console.log(conversation, "switchConversation chat-model");
|
|
|
- this.currentConversation = conversation;
|
|
|
+ this.currentConversation = conversation
|
|
|
+ ? conversation
|
|
|
+ : {
|
|
|
+ channelId: "",
|
|
|
+ conversationType: 0,
|
|
|
+ targetId: ""
|
|
|
+ };
|
|
|
}
|
|
|
},
|
|
|
destoryed() {
|
|
@@ -215,7 +221,7 @@ export default {
|
|
|
background-size: contain;
|
|
|
|
|
|
&:hover,
|
|
|
- &:active {
|
|
|
+ &.active {
|
|
|
background: url("../images/icon_chat.svg") no-repeat;
|
|
|
background-size: contain;
|
|
|
}
|
|
@@ -225,7 +231,7 @@ export default {
|
|
|
background: url("../images/icon_message_default.svg") no-repeat;
|
|
|
background-size: contain;
|
|
|
&:hover,
|
|
|
- &:active {
|
|
|
+ &.active {
|
|
|
background: url("../images/icon_message.svg") no-repeat;
|
|
|
background-size: contain;
|
|
|
}
|
|
@@ -235,7 +241,7 @@ export default {
|
|
|
background: url("../images/icon_class_default.svg") no-repeat;
|
|
|
background-size: contain;
|
|
|
&:hover,
|
|
|
- &:active {
|
|
|
+ &.active {
|
|
|
background: url("../images/icon_class.svg") no-repeat;
|
|
|
background-size: contain;
|
|
|
}
|