Skip to content

Commit

Permalink
fix: 空引用显示undefined (#1103)
Browse files Browse the repository at this point in the history
Co-authored-by: peng.chen <[email protected]>
  • Loading branch information
vchenpeng and peng.chen authored Apr 3, 2023
1 parent e2ad3fe commit 5594b0b
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 5594b0b

Please sign in to comment.