mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-11-30 02:37:57 +08:00
fix: api group tree sort not save
This commit is contained in:
parent
df9036011d
commit
9339351f34
@ -349,7 +349,9 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
* @param data GroupApiDataModel
|
||||
*/
|
||||
updateoperateApiEvent(data: GroupApiDataModel) {
|
||||
let count = 0;
|
||||
if (data.group.length > 0) {
|
||||
count++;
|
||||
console.log('data.group', data.group);
|
||||
this.storage.run(
|
||||
'groupBulkUpdate',
|
||||
@ -361,11 +363,14 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
})),
|
||||
],
|
||||
(result: StorageRes) => {
|
||||
this.buildGroupTreeData();
|
||||
if (--count === 0) {
|
||||
this.buildGroupTreeData();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
if (data.api.length > 0) {
|
||||
count++;
|
||||
console.log('data.api', data.api);
|
||||
this.storage.run(
|
||||
'apiDataBulkUpdate',
|
||||
@ -377,7 +382,9 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy {
|
||||
})),
|
||||
],
|
||||
(result: StorageRes) => {
|
||||
this.buildGroupTreeData();
|
||||
if (--count === 0) {
|
||||
this.buildGroupTreeData();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ import { EoMessageService } from 'eo/workbench/browser/src/app/eoui/message/eo-m
|
||||
import { transferFileToDataUrl } from 'eo/workbench/browser/src/app/utils';
|
||||
import { NzUploadFile } from 'ng-zorro-antd/upload';
|
||||
import { EoMonacoEditorComponent } from 'eo/workbench/browser/src/app/shared/components/monaco-editor/monaco-editor.component';
|
||||
import { EditorOptions, JoinedEditorOptions } from 'ng-zorro-antd/code-editor';
|
||||
import { EditorOptions } from 'ng-zorro-antd/code-editor';
|
||||
|
||||
@Component({
|
||||
selector: 'eo-api-test-body',
|
||||
|
Loading…
Reference in New Issue
Block a user