Skip to content

Commit 6b60fc9

Browse files
committed
build: bundle 3.1.2
1 parent 9b30e4c commit 6b60fc9

6 files changed

+32
-52
lines changed

Diff for: dist/vue-router.common.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.1.1
2+
* vue-router v3.1.2
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1063,9 +1063,9 @@ var Link = {
10631063
var handler = function (e) {
10641064
if (guardEvent(e)) {
10651065
if (this$1.replace) {
1066-
router.replace(location, null, noop);
1066+
router.replace(location, noop);
10671067
} else {
1068-
router.push(location, null, noop);
1068+
router.push(location, noop);
10691069
}
10701070
}
10711071
};
@@ -2505,14 +2505,9 @@ function getHash () {
25052505

25062506
function getUrl (path) {
25072507
var href = window.location.href;
2508-
var hashPos = href.indexOf('#');
2509-
var base = hashPos > -1 ? href.slice(0, hashPos) : href;
2510-
2511-
var searchPos = base.indexOf('?');
2512-
var query = searchPos > -1 ? base.slice(searchPos) : '';
2513-
base = query ? base.slice(0, searchPos) : base;
2514-
2515-
return (base + "#" + (path + query))
2508+
var i = href.indexOf('#');
2509+
var base = i >= 0 ? href.slice(0, i) : href;
2510+
return (base + "#" + path)
25162511
}
25172512

25182513
function pushHash (path) {
@@ -2836,7 +2831,7 @@ function createHref (base, fullPath, mode) {
28362831
}
28372832

28382833
VueRouter.install = install;
2839-
VueRouter.version = '3.1.1';
2834+
VueRouter.version = '3.1.2';
28402835

28412836
if (inBrowser && window.Vue) {
28422837
window.Vue.use(VueRouter);

Diff for: dist/vue-router.esm.browser.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.1.1
2+
* vue-router v3.1.2
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1042,9 +1042,9 @@ var Link = {
10421042
const handler = e => {
10431043
if (guardEvent(e)) {
10441044
if (this.replace) {
1045-
router.replace(location, null, noop);
1045+
router.replace(location, noop);
10461046
} else {
1047-
router.push(location, null, noop);
1047+
router.push(location, noop);
10481048
}
10491049
}
10501050
};
@@ -2456,14 +2456,9 @@ function getHash () {
24562456

24572457
function getUrl (path) {
24582458
const href = window.location.href;
2459-
const hashPos = href.indexOf('#');
2460-
let base = hashPos > -1 ? href.slice(0, hashPos) : href;
2461-
2462-
const searchPos = base.indexOf('?');
2463-
const query = searchPos > -1 ? base.slice(searchPos) : '';
2464-
base = query ? base.slice(0, searchPos) : base;
2465-
2466-
return `${base}#${path + query}`
2459+
const i = href.indexOf('#');
2460+
const base = i >= 0 ? href.slice(0, i) : href;
2461+
return `${base}#${path}`
24672462
}
24682463

24692464
function pushHash (path) {
@@ -2784,7 +2779,7 @@ function createHref (base, fullPath, mode) {
27842779
}
27852780

27862781
VueRouter.install = install;
2787-
VueRouter.version = '3.1.1';
2782+
VueRouter.version = '3.1.2';
27882783

27892784
if (inBrowser && window.Vue) {
27902785
window.Vue.use(VueRouter);

Diff for: dist/vue-router.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue-router.esm.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.1.1
2+
* vue-router v3.1.2
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1061,9 +1061,9 @@ var Link = {
10611061
var handler = function (e) {
10621062
if (guardEvent(e)) {
10631063
if (this$1.replace) {
1064-
router.replace(location, null, noop);
1064+
router.replace(location, noop);
10651065
} else {
1066-
router.push(location, null, noop);
1066+
router.push(location, noop);
10671067
}
10681068
}
10691069
};
@@ -2503,14 +2503,9 @@ function getHash () {
25032503

25042504
function getUrl (path) {
25052505
var href = window.location.href;
2506-
var hashPos = href.indexOf('#');
2507-
var base = hashPos > -1 ? href.slice(0, hashPos) : href;
2508-
2509-
var searchPos = base.indexOf('?');
2510-
var query = searchPos > -1 ? base.slice(searchPos) : '';
2511-
base = query ? base.slice(0, searchPos) : base;
2512-
2513-
return (base + "#" + (path + query))
2506+
var i = href.indexOf('#');
2507+
var base = i >= 0 ? href.slice(0, i) : href;
2508+
return (base + "#" + path)
25142509
}
25152510

25162511
function pushHash (path) {
@@ -2834,7 +2829,7 @@ function createHref (base, fullPath, mode) {
28342829
}
28352830

28362831
VueRouter.install = install;
2837-
VueRouter.version = '3.1.1';
2832+
VueRouter.version = '3.1.2';
28382833

28392834
if (inBrowser && window.Vue) {
28402835
window.Vue.use(VueRouter);

Diff for: dist/vue-router.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* vue-router v3.1.1
2+
* vue-router v3.1.2
33
* (c) 2019 Evan You
44
* @license MIT
55
*/
@@ -1067,9 +1067,9 @@ var Link = {
10671067
var handler = function (e) {
10681068
if (guardEvent(e)) {
10691069
if (this$1.replace) {
1070-
router.replace(location, null, noop);
1070+
router.replace(location, noop);
10711071
} else {
1072-
router.push(location, null, noop);
1072+
router.push(location, noop);
10731073
}
10741074
}
10751075
};
@@ -2509,14 +2509,9 @@ function getHash () {
25092509

25102510
function getUrl (path) {
25112511
var href = window.location.href;
2512-
var hashPos = href.indexOf('#');
2513-
var base = hashPos > -1 ? href.slice(0, hashPos) : href;
2514-
2515-
var searchPos = base.indexOf('?');
2516-
var query = searchPos > -1 ? base.slice(searchPos) : '';
2517-
base = query ? base.slice(0, searchPos) : base;
2518-
2519-
return (base + "#" + (path + query))
2512+
var i = href.indexOf('#');
2513+
var base = i >= 0 ? href.slice(0, i) : href;
2514+
return (base + "#" + path)
25202515
}
25212516

25222517
function pushHash (path) {
@@ -2840,7 +2835,7 @@ function createHref (base, fullPath, mode) {
28402835
}
28412836

28422837
VueRouter.install = install;
2843-
VueRouter.version = '3.1.1';
2838+
VueRouter.version = '3.1.2';
28442839

28452840
if (inBrowser && window.Vue) {
28462841
window.Vue.use(VueRouter);

Diff for: dist/vue-router.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)