🐛 Fix post thumbnail issue
This commit is contained in:
parent
7b0b5d4704
commit
6f4ac1a0e6
@ -115,11 +115,11 @@ watch(attachments, (value) => {
|
|||||||
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${post.value.body?.thumbnail}`
|
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${post.value.body?.thumbnail}`
|
||||||
}
|
}
|
||||||
if (value.length > 0 && value[0].mimetype.split("/")[0] == "image") {
|
if (value.length > 0 && value[0].mimetype.split("/")[0] == "image") {
|
||||||
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].id}`
|
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].rid}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.length > 0 && value[0].mimetype.split("/")[0] == "video") {
|
if (value.length > 0 && value[0].mimetype.split("/")[0] == "video") {
|
||||||
firstVideo.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].id}`
|
firstVideo.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].rid}`
|
||||||
}
|
}
|
||||||
}, { immediate: true, deep: true })
|
}, { immediate: true, deep: true })
|
||||||
|
|
||||||
|
@ -114,11 +114,11 @@ watch(attachments, (value) => {
|
|||||||
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${post.value.body?.thumbnail}`
|
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${post.value.body?.thumbnail}`
|
||||||
}
|
}
|
||||||
if (value.length > 0 && value[0].mimetype.split("/")[0] == "image") {
|
if (value.length > 0 && value[0].mimetype.split("/")[0] == "image") {
|
||||||
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].id}`
|
firstImage.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].rid}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.length > 0 && value[0].mimetype.split("/")[0] == "video") {
|
if (value.length > 0 && value[0].mimetype.split("/")[0] == "video") {
|
||||||
firstVideo.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].id}`
|
firstVideo.value = `${config.public.solarNetworkApi}/cgi/uc/attachments/${attachments.value[0].rid}`
|
||||||
}
|
}
|
||||||
}, { immediate: true, deep: true })
|
}, { immediate: true, deep: true })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user