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

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

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