Compare commits
2 Commits
bb1dea088f
...
6bd76420b2
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6bd76420b2 | ||
![]() |
3cb0b16c16 |
@ -34,6 +34,13 @@ export default class Folders extends BaseNotary {
|
||||
public async get(q: IGetFoldersParams): Promise<OfficeFolder[]> {
|
||||
const url = new URL(this.baseURl);
|
||||
Object.entries(q).forEach(([key, value]) => url.searchParams.set(key, JSON.stringify(value)));
|
||||
|
||||
console.log('URL complète :', url.toString());
|
||||
console.log('Paramètres de recherche :', {
|
||||
baseURL: this.baseURl,
|
||||
queryParams: Object.fromEntries(url.searchParams.entries())
|
||||
});
|
||||
|
||||
try {
|
||||
return await this.getRequest<OfficeFolder[]>(url);
|
||||
} catch (err) {
|
||||
|
@ -31,12 +31,14 @@ export default function Folder() {
|
||||
},
|
||||
})
|
||||
.then((folders) => {
|
||||
if (folders.length > 0)
|
||||
router.push(
|
||||
Module.getInstance()
|
||||
.get()
|
||||
.modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
|
||||
);
|
||||
if (folders.length > 0) {
|
||||
console.log("Liste des dossiers:", JSON.stringify(folders));
|
||||
// router.push(
|
||||
// Module.getInstance()
|
||||
// .get()
|
||||
// .modules.pages.Folder.pages.FolderInformation.props.path.replace("[folderUid]", folders[0]?.uid ?? ""),
|
||||
// );
|
||||
}
|
||||
});
|
||||
}, [router]);
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user