|
@ -58,7 +58,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
window.addEventListener('beforeunload', this.clearStorage); |
|
|
window.addEventListener('beforeunload', this.clearStorage); |
|
|
if(this.$route.path.includes('/agent/')){ |
|
|
if(this.$route.path.includes('/agent/') || this.$route.path === '/'){ |
|
|
const menu_list = JSON.parse(localStorage.getItem('menu_list')) |
|
|
const menu_list = JSON.parse(localStorage.getItem('menu_list')) |
|
|
store.commit('SET_SLIDER_MENU', menu_list); |
|
|
store.commit('SET_SLIDER_MENU', menu_list); |
|
|
} |
|
|
} |
|
|