Commit c897b3ae by qlintonger xeno

添加内容+4

parent 072d3084
...@@ -40,6 +40,12 @@ const ps = defineProps({ ...@@ -40,6 +40,12 @@ const ps = defineProps({
}) })
const userDataForThis = computed(function () { const userDataForThis = computed(function () {
if(ps.isSelf) {
return {
name: "我", calling: false
}
}
const userNow: any = userStates.value.onlineContacts.find((a: any) => a.fromID === ps.id); const userNow: any = userStates.value.onlineContacts.find((a: any) => a.fromID === ps.id);
return { return {
name: userNow?.fromName || '--', name: userNow?.fromName || '--',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment