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 <peng.chen@freemud.com>
  • Loading branch information
2 people authored and HalfCoke committed Jul 6, 2023
1 parent 5a17163 commit fc5d15e
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 fc5d15e

Please sign in to comment.