mirror of
https://github.com/xfgryujk/blivechat.git
synced 2024-12-26 21:00:15 +08:00
auto http/https avatarUrl
This commit is contained in:
parent
1cf6d88460
commit
4b98c56965
@ -112,7 +112,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
addMessage(message) {
|
||||
addMessage({ avatarUrl, ...message }) {
|
||||
if (avatarUrl) {
|
||||
message.avatarUrl = avatarUrl.replace('http:', '').replace('https:', '')
|
||||
}
|
||||
this.addMessages([message])
|
||||
},
|
||||
addMessages(messages) {
|
||||
|
Loading…
Reference in New Issue
Block a user