From b6f50bbf53ba13c054a104fc2c4e0b6913fe921c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 5 Apr 2024 00:57:04 +0800 Subject: [PATCH] :bug: Fix isOwned issue --- src/components/posts/PostAction.vue | 2 +- src/components/realms/RealmMembers.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/posts/PostAction.vue b/src/components/posts/PostAction.vue index 8a2e091..ba8ff8f 100644 --- a/src/components/posts/PostAction.vue +++ b/src/components/posts/PostAction.vue @@ -22,7 +22,7 @@ const editor = useEditor() const props = defineProps<{ item: any }>() -const isOwned = computed(() => props.item?.author_id === id.userinfo.data.id) +const isOwned = computed(() => props.item?.author_id === id.userinfo.idSet.interactive) function editPost() { editor.related.edit_to = JSON.parse(JSON.stringify(props.item)) diff --git a/src/components/realms/RealmMembers.vue b/src/components/realms/RealmMembers.vue index 231c5bb..1cd113c 100644 --- a/src/components/realms/RealmMembers.vue +++ b/src/components/realms/RealmMembers.vue @@ -63,7 +63,7 @@ const props = defineProps<{ item: any }>() const members = ref([]) const isOwned = computed(() => { - return id.userinfo.data?.id === props.item?.account_id + return id.userinfo.idSet?.interactive === props.item?.account_id }) const { showErrorSnackbar } = useUI()