From c684c9b75a87317ec0160eab04cd53b6ef3dc0cf Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 24 Dec 2023 11:28:07 +0800 Subject: [PATCH] fix: patch the node data for mood Signed-off-by: Innei --- src/views/manage-notes/list.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/manage-notes/list.tsx b/src/views/manage-notes/list.tsx index 195ff4e16..fd8cc7ba4 100644 --- a/src/views/manage-notes/list.tsx +++ b/src/views/manage-notes/list.tsx @@ -136,7 +136,7 @@ export const ManageNoteListView = defineComponent({ { - await RESTManager.api.notes(row.id).put({ + await RESTManager.api.notes(row.id).patch({ data: { mood: v, }, @@ -159,7 +159,7 @@ export const ManageNoteListView = defineComponent({ { - await RESTManager.api.notes(row.id).put({ + await RESTManager.api.notes(row.id).patch({ data: { weather: v, },