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 xiehui committed Apr 7, 2023
1 parent e1a6399 commit 0c6ca22
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 0c6ca22

Please sign in to comment.