mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
fix code format (#6365)
This commit is contained in:
@@ -7,7 +7,7 @@ class MetadataManagerAPI {
|
||||
this.server = server;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.token = token; //none
|
||||
this.token = token; // none
|
||||
if (this.token && this.server) {
|
||||
this.req = axios.create({
|
||||
baseURL: this.server,
|
||||
@@ -36,7 +36,7 @@ class MetadataManagerAPI {
|
||||
_sendPostRequest(url, form) {
|
||||
if (form.getHeaders) {
|
||||
return this.req.post(url, form, {
|
||||
headers:form.getHeaders()
|
||||
headers: form.getHeaders()
|
||||
});
|
||||
} else {
|
||||
return this.req.post(url, form);
|
||||
@@ -94,7 +94,7 @@ class MetadataManagerAPI {
|
||||
if (name) {
|
||||
params['name'] = name;
|
||||
}
|
||||
return this.req.get(url, {params: params});
|
||||
return this.req.get(url, { params: params });
|
||||
}
|
||||
|
||||
updateMetadataRecord = (repoID, recordID, columnName, newValue) => {
|
||||
|
Reference in New Issue
Block a user