File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11/*!
2- * vue-router v0.7.8
2+ * vue-router v0.7.9
33 * (c) 2016 Evan You
44 * Released under the MIT License.
55 */
182182 } ,
183183
184184 generate : function generate ( params ) {
185- return params [ this . name ] ;
185+ return params [ this . name ] || ":" + this . name ;
186186 }
187187 } ;
188188
199199 } ,
200200
201201 generate : function generate ( params ) {
202- return params [ this . name ] ;
202+ return params [ this . name ] || ":" + this . name ;
203203 }
204204 } ;
205205
19331933 if ( this . el . tagName !== 'A' ) {
19341934 return ;
19351935 }
1936- if ( this . target && this . target . name ) {
1937- this . el . href = '#' + this . target . name ;
1938- return ;
1939- }
19401936 var path = this . path ;
19411937 var router = this . router ;
19421938 var isAbsolute = path . charAt ( 0 ) === '/' ;
25302526 if ( path && typeof path === 'object' ) {
25312527 if ( path . name ) {
25322528 var extend = Vue . util . extend ;
2533- var currentParams = this . _currentTransition . to . params ;
2529+ var currentParams = this . _currentTransition && this . _currentTransition . to . params ;
25342530 var targetParams = path . params || { } ;
25352531 var params = currentParams ? extend ( extend ( { } , currentParams ) , targetParams ) : targetParams ;
25362532 if ( path . query ) {
You can’t perform that action at this time.
0 commit comments