|
@ -160,7 +160,7 @@ export default { |
|
|
return this.$route.matched |
|
|
return this.$route.matched |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
|
|
|
|
|
|
created() { |
|
|
const screenWidth = document.body.clientWidth |
|
|
const screenWidth = document.body.clientWidth |
|
|
if (screenWidth < 1000) { |
|
|
if (screenWidth < 1000) { |
|
|
this.isMobile = true |
|
|
this.isMobile = true |
|
@ -175,6 +175,8 @@ export default { |
|
|
this.isSider = true |
|
|
this.isSider = true |
|
|
this.isCollapse = false |
|
|
this.isCollapse = false |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
emitter.emit('collapse', this.isCollapse) |
|
|
emitter.emit('collapse', this.isCollapse) |
|
|
emitter.emit('mobile', this.isMobile) |
|
|
emitter.emit('mobile', this.isMobile) |
|
|
emitter.on('reload', this.reload) |
|
|
emitter.on('reload', this.reload) |
|
|