Add route info to ReplayPoint while routing

This commit is contained in:
斟酌 鵬兄 2021-10-07 02:40:11 +08:00
parent d94cd5f978
commit 0d7f4a8deb

View File

@ -20,6 +20,7 @@ class RelayPoint
typeof internal !== 'undefined' ? internal : false
);
this.route = null;
this.value = internal ? uri : stripURI( uri );
this.params = Array.prototype.slice.call( arguments, 2 );
}
@ -108,6 +109,7 @@ class Router extends EventEmitter
setRoute( _route, _match )
{
var _self = this;
this.relaying.route = _route;
this.routeObj = {
route: _route
, match: _match