|
@@ -77,9 +77,9 @@ const PageDuplicateModal = (props) => {
|
|
|
const { subordinatedPaths } = res.data;
|
|
const { subordinatedPaths } = res.data;
|
|
|
setSubordinatedPages(subordinatedPaths);
|
|
setSubordinatedPages(subordinatedPaths);
|
|
|
const toPaths = ['/test1223/test', '/test1223/test12', 'test/1234556', 't', '/test1223/test/test3'];
|
|
const toPaths = ['/test1223/test', '/test1223/test12', 'test/1234556', 't', '/test1223/test/test3'];
|
|
|
- const response = await appContainer.apiv3Get('/page/duplication-path', { path, toPaths });
|
|
|
|
|
- const { paths } = response.data;
|
|
|
|
|
- console.log(paths);
|
|
|
|
|
|
|
+ const response = await appContainer.apiv3Get('/page/exist-paths', { path, toPaths });
|
|
|
|
|
+ const { existPaths } = response.data;
|
|
|
|
|
+ console.log(existPaths);
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
setErrs(err);
|
|
setErrs(err);
|