Commit 086a7a41 by 冒粤蓉

fix breacrumb

1 parent c1826656
...@@ -237,10 +237,12 @@ export default { ...@@ -237,10 +237,12 @@ export default {
window.addEventListener("popstate", function(e) { window.addEventListener("popstate", function(e) {
const { state } = e; const { state } = e;
if(state) { if(state) {
setTimeout(()=>{
const { breadcrumb } = state; const { breadcrumb } = state;
if(breadcrumb) { if(breadcrumb) {
store.dispatch('menu/setBreadCrumb', breadcrumb); store.dispatch('menu/setBreadCrumb', breadcrumb);
} }
},200)
} }
}, false); }, false);
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!