浏览代码

fix Import Done Button do not redirect

Ben0it-T 3 年之前
父节点
当前提交
f9b6978303
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      client/components/import/import.js

+ 6 - 1
client/components/import/import.js

@@ -87,8 +87,13 @@ BlazeComponent.extendComponent({
         if (err) {
           this.setError(err.error);
         } else {
+          let title = getSlug(this.importedData.get().title) || 'imported-board';
           Session.set('fromBoard', null);
-          Utils.goBoardId(res);
+          FlowRouter.go('board', {
+            id: res,
+            slug: title,
+          })
+          //Utils.goBoardId(res);
         }
       },
     );