const $ = global; new $.Page({ data: { toView: '' }, onLoad() { const meta = $.router.getMeta(); const target = meta && meta.params && meta.params.target || ''; if (target) { setTimeout(() => { this.setData({ toView: target }); }, 10); } } });