mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
added if block for check response type
This commit is contained in:
@@ -91,6 +91,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
GetChatHistory().then((response) => {
|
||||
if (response && response.length) {
|
||||
response.forEach((element) => {
|
||||
let imageUrl = "https://avatar.spworlds.ru/face/55/" + element.userName;
|
||||
|
||||
@@ -104,6 +105,7 @@ export default {
|
||||
this.array.push(MsgUser);
|
||||
});
|
||||
this.ScrollToBottom();
|
||||
}
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user