1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

fix: detail editor (#6566)

* fix: detail editor

* feat: update code

---------

Co-authored-by: 杨国璇 <ygx@192.168.1.4>
This commit is contained in:
杨国璇
2024-08-15 20:34:33 +08:00
committed by GitHub
parent 2e87f7acb4
commit 2b1c9cc8df
21 changed files with 201 additions and 344 deletions

View File

@@ -80,9 +80,9 @@ class MetadataManagerAPI {
return this.req.get(url, { params: params });
}
modifyRecord = (repoID, recordID, update) => {
modifyRecord = (repoID, recordID, update, objID) => {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/records/';
const data = { records_data: [{ record_id: recordID, record: update }] };
const data = { records_data: [{ record_id: recordID, record: update, obj_id: objID }] };
return this.req.put(url, data);
};