add sort functionality to bookmark widget

This commit is contained in:
ma0068
2025-10-29 09:52:11 +01:00
parent 3c9a52e389
commit 9c8a1f564e
5 changed files with 166 additions and 5 deletions
+8 -2
View File
@@ -35,11 +35,17 @@ export default {
params: { url, title }
};
},
insert({ url, title, tag }) {
insert({ url, title, tag, sort }) {
return {
method: 'post',
url: `/api/frontend/v1/Bookmark/insert`,
params: { url, title, tag }
params: { url, title, tag, sort }
};
},
changeOrder(bookmark_id1, bookmark_id2) {
return {
method: 'post',
url: `/api/frontend/v1/Bookmark/changeOrder/${bookmark_id1}/${bookmark_id2}`,
};
}
};