Commit 8e9f6ddf authored by youjie's avatar youjie

菜单显示

parent fe9eaafb
......@@ -44,6 +44,18 @@
chosenOpenMode,
mycareer
},
watch: {
'window.location': {
handler(newValue) {
if(window.location.ancestorOrigins.length==0) localStorage.setItem('typeSystem', 0)
else localStorage.setItem('typeSystem', 1)
console.log(window.location.href)
console.log(localStorage.typeSystem,'=-===')
},
deep: true,
immediate: true
},
},
created() {
//注册禁止后退,并且不做卸载
// history.go(-1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment