瀏覽代碼

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) {
         if (err) {
           this.setError(err.error);
           this.setError(err.error);
         } else {
         } else {
+          let title = getSlug(this.importedData.get().title) || 'imported-board';
           Session.set('fromBoard', null);
           Session.set('fromBoard', null);
-          Utils.goBoardId(res);
+          FlowRouter.go('board', {
+            id: res,
+            slug: title,
+          })
+          //Utils.goBoardId(res);
         }
         }
       },
       },
     );
     );