Skip to content

Commit

Permalink
fix: 空引用显示undefined (Chanzhaoyu#1103)
Browse files Browse the repository at this point in the history
Co-authored-by: peng.chen <[email protected]>
  • Loading branch information
2 people authored and Herobrine-ymf committed Apr 5, 2023
1 parent bf71b13 commit d46136e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ async function onConversation() {
dataSources.value.length - 1,
{
dateTime: new Date().toLocaleString(),
text: lastText + data.text ?? '',
text: lastText + (data.text ?? ''),
inversion: false,
error: false,
loading: true,
Expand Down

0 comments on commit d46136e

Please sign in to comment.