🐛 Fix isOwned issue

This commit is contained in:
LittleSheep 2024-04-05 00:57:04 +08:00
parent 21b2f1e555
commit b6f50bbf53
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -63,7 +63,7 @@ const props = defineProps<{ item: any }>()
const members = ref<any[]>([])
const isOwned = computed(() => {
return id.userinfo.data?.id === props.item?.account_id
return id.userinfo.idSet?.interactive === props.item?.account_id
})
const { showErrorSnackbar } = useUI()