You need to sign in or sign up before continuing.
提交 a85c32c4 编写于 作者: fxy060608's avatar fxy060608

fix(h5): force reload when route id is undefined

上级 ce8c20ce
......@@ -2204,8 +2204,9 @@ var HTML5History = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({ // fixed by xxxxxx
......@@ -2353,8 +2354,9 @@ var HashHistory = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({
......
......@@ -2202,8 +2202,9 @@ var HTML5History = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({ // fixed by xxxxxx
......@@ -2351,8 +2352,9 @@ var HashHistory = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({
......
......@@ -2208,8 +2208,9 @@ var HTML5History = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({ // fixed by xxxxxx
......@@ -2357,8 +2358,9 @@ var HashHistory = (function (History$$1) {
// fixed by xxxxxx
var id = e.state && e.state.id;
if (!id) {
// TODO
id = router.id;
// 当手动切换页面时,强制刷新
return window.location.reload()
// id = router.id
}
this$1.transitionTo({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册