mirror of
https://github.com/doocs/md.git
synced 2025-01-22 20:04:39 +08:00
chore: update post channels (#515)
This commit is contained in:
parent
8e8080b228
commit
49c3231012
@ -32,6 +32,7 @@ async function prePost() {
|
|||||||
markdown: ``,
|
markdown: ``,
|
||||||
accounts: [],
|
accounts: [],
|
||||||
}
|
}
|
||||||
|
const accounts = allAccounts.value.filter(a => !['weixin', 'ipfs'].includes(a.type))
|
||||||
try {
|
try {
|
||||||
auto = {
|
auto = {
|
||||||
thumb: document.querySelector<HTMLImageElement>(`#output img`)?.src ?? ``,
|
thumb: document.querySelector<HTMLImageElement>(`#output img`)?.src ?? ``,
|
||||||
@ -42,7 +43,7 @@ async function prePost() {
|
|||||||
desc: document.querySelector(`#output p`)!.textContent ?? ``,
|
desc: document.querySelector(`#output p`)!.textContent ?? ``,
|
||||||
content: output.value,
|
content: output.value,
|
||||||
markdown: editor.value?.getValue() ?? ``,
|
markdown: editor.value?.getValue() ?? ``,
|
||||||
accounts: allAccounts.value,
|
accounts,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user