Commit dea52d10 by 李伟康

修改页面options

1 parent 5d845190
...@@ -16,7 +16,10 @@ class Router { ...@@ -16,7 +16,10 @@ class Router {
let thisPage = this.getPageInstance() let thisPage = this.getPageInstance()
if (thisPage) { if (thisPage) {
thisPage.setData({ IMG_URL }) thisPage.setData({ IMG_URL })
if(Object.keys(this[_query]).length) thisPage.options = this[_query] if(Object.keys(this[_query]).length) thisPage.options = {
...thisPage.options,
...this[_query]
}
this.setNavigationBarTitleText(thisPage) this.setNavigationBarTitleText(thisPage)
let onRoute = thisPage.onRoute let onRoute = thisPage.onRoute
typeof onRoute === 'function' && onRoute(this[_query]) typeof onRoute === 'function' && onRoute(this[_query])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!