1
1
/*!
2
- * vue-router v0.6.1
2
+ * vue-router v0.6.2
3
3
* (c) 2015 Evan You
4
4
* Released under the MIT License.
5
5
*/
@@ -1590,7 +1590,7 @@ return /******/ (function(modules) { // webpackBootstrap
1590
1590
Object . defineProperty ( exports , "__esModule" , {
1591
1591
value : true
1592
1592
} ) ;
1593
- var internalKeysRE = / ^ ( c o m p o n e n t | s u b R o u t e s | n a m e ) $ / ;
1593
+ var internalKeysRE = / ^ ( c o m p o n e n t | s u b R o u t e s ) $ / ;
1594
1594
1595
1595
/**
1596
1596
* Route Context Object
@@ -2536,11 +2536,11 @@ return /******/ (function(modules) { // webpackBootstrap
2536
2536
// don't redirect on right click
2537
2537
if ( e . button !== 0 ) return ;
2538
2538
2539
- if ( _this . el . tagName === 'A' ) {
2539
+ if ( _this . el . tagName === 'A' || e . target === _this . el ) {
2540
2540
// v-link on <a v-link="'path'">
2541
2541
e . preventDefault ( ) ;
2542
2542
if ( _this . destination != null ) {
2543
- router . go ( _this . destination ) ;
2543
+ router . go ( _this . destination , _this . replace === true ) ;
2544
2544
}
2545
2545
} else {
2546
2546
// v-link delegate on <div v-link>
@@ -2562,6 +2562,7 @@ return /******/ (function(modules) { // webpackBootstrap
2562
2562
2563
2563
update : function update ( path ) {
2564
2564
var router = this . vm . $route . router ;
2565
+ this . replace = typeof path === 'object' ? path . replace : false ;
2565
2566
path = router . _normalizePath ( path ) ;
2566
2567
this . destination = path ;
2567
2568
this . activeRE = path ? new RegExp ( '^' + path . replace ( regexEscapeRE , '\\$&' ) + '\\b' ) : null ;
0 commit comments