提交 16730167 编写于 作者: fxy060608's avatar fxy060608

Merge branch 'dev' of https://github.com/dcloudio/uni-app into alpha

/*! /*!
* vue-router v3.0.1 * vue-router v3.0.1
* (c) 2018 Evan You * (c) 2019 Evan You
* @license MIT * @license MIT
*/ */
'use strict'; 'use strict';
...@@ -1671,7 +1671,7 @@ function scrollToPosition (shouldScroll, position) { ...@@ -1671,7 +1671,7 @@ function scrollToPosition (shouldScroll, position) {
/* */ /* */
var supportsPushState = inBrowser && (function() { var supportsPushState = inBrowser && (function () {
var ua = window.navigator.userAgent; var ua = window.navigator.userAgent;
if ( if (
...@@ -1697,15 +1697,15 @@ function genKey () { ...@@ -1697,15 +1697,15 @@ function genKey () {
return Time.now().toFixed(3) return Time.now().toFixed(3)
} }
function getStateKey() { function getStateKey () {
return _key return _key
} }
function setStateKey(key) { function setStateKey (key) {
_key = key; _key = key;
} }
function pushState(url , id , replace ) { function pushState (url , id , replace ) {
saveScrollPosition(); saveScrollPosition();
// try...catch the pushState call to get around Safari // try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls // DOM Exception 18 where it limits to 100 pushState calls
...@@ -1728,7 +1728,7 @@ function pushState(url , id , replace ) { ...@@ -1728,7 +1728,7 @@ function pushState(url , id , replace ) {
} }
} }
function replaceState(url , id ) { function replaceState (url , id ) {
pushState(url, id, true); pushState(url, id, true);
} }
...@@ -2776,8 +2776,8 @@ function createHref (base, fullPath, mode) { ...@@ -2776,8 +2776,8 @@ function createHref (base, fullPath, mode) {
VueRouter.install = install; VueRouter.install = install;
VueRouter.version = '3.0.1'; VueRouter.version = '3.0.1';
if (inBrowser && window.Vue) { // if (inBrowser && window.Vue) {
window.Vue.use(VueRouter); // window.Vue.use(VueRouter)
} // }
module.exports = VueRouter; module.exports = VueRouter;
/*! /*!
* vue-router v3.0.1 * vue-router v3.0.1
* (c) 2018 Evan You * (c) 2019 Evan You
* @license MIT * @license MIT
*/ */
/* */ /* */
...@@ -1669,7 +1669,7 @@ function scrollToPosition (shouldScroll, position) { ...@@ -1669,7 +1669,7 @@ function scrollToPosition (shouldScroll, position) {
/* */ /* */
var supportsPushState = inBrowser && (function() { var supportsPushState = inBrowser && (function () {
var ua = window.navigator.userAgent; var ua = window.navigator.userAgent;
if ( if (
...@@ -1695,15 +1695,15 @@ function genKey () { ...@@ -1695,15 +1695,15 @@ function genKey () {
return Time.now().toFixed(3) return Time.now().toFixed(3)
} }
function getStateKey() { function getStateKey () {
return _key return _key
} }
function setStateKey(key) { function setStateKey (key) {
_key = key; _key = key;
} }
function pushState(url , id , replace ) { function pushState (url , id , replace ) {
saveScrollPosition(); saveScrollPosition();
// try...catch the pushState call to get around Safari // try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls // DOM Exception 18 where it limits to 100 pushState calls
...@@ -1726,7 +1726,7 @@ function pushState(url , id , replace ) { ...@@ -1726,7 +1726,7 @@ function pushState(url , id , replace ) {
} }
} }
function replaceState(url , id ) { function replaceState (url , id ) {
pushState(url, id, true); pushState(url, id, true);
} }
...@@ -2774,8 +2774,8 @@ function createHref (base, fullPath, mode) { ...@@ -2774,8 +2774,8 @@ function createHref (base, fullPath, mode) {
VueRouter.install = install; VueRouter.install = install;
VueRouter.version = '3.0.1'; VueRouter.version = '3.0.1';
if (inBrowser && window.Vue) { // if (inBrowser && window.Vue) {
window.Vue.use(VueRouter); // window.Vue.use(VueRouter)
} // }
export default VueRouter; export default VueRouter;
/*! /*!
* vue-router v3.0.1 * vue-router v3.0.1
* (c) 2018 Evan You * (c) 2019 Evan You
* @license MIT * @license MIT
*/ */
(function (global, factory) { (function (global, factory) {
...@@ -1675,7 +1675,7 @@ function scrollToPosition (shouldScroll, position) { ...@@ -1675,7 +1675,7 @@ function scrollToPosition (shouldScroll, position) {
/* */ /* */
var supportsPushState = inBrowser && (function() { var supportsPushState = inBrowser && (function () {
var ua = window.navigator.userAgent; var ua = window.navigator.userAgent;
if ( if (
...@@ -1701,15 +1701,15 @@ function genKey () { ...@@ -1701,15 +1701,15 @@ function genKey () {
return Time.now().toFixed(3) return Time.now().toFixed(3)
} }
function getStateKey() { function getStateKey () {
return _key return _key
} }
function setStateKey(key) { function setStateKey (key) {
_key = key; _key = key;
} }
function pushState(url , id , replace ) { function pushState (url , id , replace ) {
saveScrollPosition(); saveScrollPosition();
// try...catch the pushState call to get around Safari // try...catch the pushState call to get around Safari
// DOM Exception 18 where it limits to 100 pushState calls // DOM Exception 18 where it limits to 100 pushState calls
...@@ -1732,7 +1732,7 @@ function pushState(url , id , replace ) { ...@@ -1732,7 +1732,7 @@ function pushState(url , id , replace ) {
} }
} }
function replaceState(url , id ) { function replaceState (url , id ) {
pushState(url, id, true); pushState(url, id, true);
} }
...@@ -2780,9 +2780,9 @@ function createHref (base, fullPath, mode) { ...@@ -2780,9 +2780,9 @@ function createHref (base, fullPath, mode) {
VueRouter.install = install; VueRouter.install = install;
VueRouter.version = '3.0.1'; VueRouter.version = '3.0.1';
if (inBrowser && window.Vue) { // if (inBrowser && window.Vue) {
window.Vue.use(VueRouter); // window.Vue.use(VueRouter)
} // }
return VueRouter; return VueRouter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册