Skip to content

Commit

Permalink
error redirect can not back
Browse files Browse the repository at this point in the history
  • Loading branch information
roniny-afk committed Sep 5, 2017
1 parent ce36bc3 commit 7533dd6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nylon-pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
},
_initRoute: function (option) {



var option = option || {}

for (let i = 0; i < this.children.length; i++) {
Expand Down Expand Up @@ -144,7 +146,8 @@

});
}
page()
page.start()

},
_reflectChildrenAttribute: function (index) {
// console.log(this.children[index].localName)
Expand All @@ -163,7 +166,7 @@
if(this.rootPattern)
path = this.rootPattern + path

page.redirect(path)
page(path)
}
});
</script>
Expand Down

0 comments on commit 7533dd6

Please sign in to comment.