Skip to content

Commit

Permalink
Merge pull request #1512 from didi/fix-web-view-refresh
Browse files Browse the repository at this point in the history
fix 未兜底兜全的情况
  • Loading branch information
hiyuki authored Jun 20, 2024
2 parents 23c1e87 + 4d80f90 commit 5109102
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/webpack-plugin/lib/runtime/optionProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ function createApp ({ componentsMap, Vue, pagesMap, firstPage, VueRouter, App, t
const sessionStorage = window.sessionStorage
try {
if (sessionStorage) {
mpxStackPath = JSON.parse(sessionStorage.getItem('_mpx_stack_path_'))
const stackPath = JSON.parse(sessionStorage.getItem('_mpx_stack_path_'))
if (Array.isArray(stackPath)) {
mpxStackPath = stackPath
}
}
} catch (e) {
}
Expand Down

0 comments on commit 5109102

Please sign in to comment.