🐛 Fix isOwned issue
This commit is contained in:
parent
21b2f1e555
commit
b6f50bbf53
@ -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))
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user