Skip to content

Commit 0e87685

Browse files
committed
fix: ensure platforms are correctly processed in post function
- Updated the post function in PostInfo.vue to use toRaw for selectedAccounts.value, ensuring proper handling of reactive data.
1 parent b6acbff commit 0e87685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CodemirrorEditor/EditorHeader/PostInfo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function toRaw<T extends object>(obj: T): T {
128128
129129
function post() {
130130
const sdata: SyncData = {
131-
platforms: selectedAccounts.value,
131+
platforms: toRaw(selectedAccounts.value),
132132
auto_publish: false,
133133
data: toRaw(form.value),
134134
}

0 commit comments

Comments
 (0)