zahmis 5 лет назад
Родитель
Сommit
061c96df54

+ 1 - 0
src/client/js/components/ArchiveCreateModal.jsx

@@ -70,6 +70,7 @@ const ArchiveCreateModal = (props) => {
     catch (e) {
       toastError(e);
     }
+    closeModalHandler();
   }
 
   return (

+ 4 - 1
src/server/routes/apiv3/page.js

@@ -247,7 +247,7 @@ module.exports = (crowi) => {
 
     const numOfPages = 1; // TODO 最終的にzipファイルに取り込むページ数を入れる
 
-    await PageArchive.create({
+    const pageArchiveCreate = await PageArchive.create({
       owner,
       fileType,
       rootPagePath,
@@ -255,6 +255,9 @@ module.exports = (crowi) => {
       hasComment: isCommentDownload,
       hasAttachment: isAttachmentFileDownload,
     });
+
+    return res.apiv3({ pageArchiveCreate });
+
   });
 
   router.get('/count-children-pages', accessTokenParser, loginRequired, async(req, res) => {