|
@@ -56,7 +56,7 @@ export default {
|
|
|
clearTimeout(this.timer)
|
|
|
}
|
|
|
this.timer = setTimeout(() => {
|
|
|
- if (this.$refs.menu.$el.clientWidth < 1322 && Array.from(this.$refs.menu.$el.getElementsByTagName('li')).filter(item => item.className.indexOf('el-submenu') != -1).length > 8) {
|
|
|
+ if (this.$refs.menu.$el.clientWidth < 1206 && Array.from(this.$refs.menu.$el.getElementsByTagName('li')).filter(item => item.className.indexOf('el-submenu') != -1).length > 8) {
|
|
|
this.marginTrue = true
|
|
|
} else {
|
|
|
this.marginTrue = false
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
window.addEventListener('resize',this.debouned)
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
- if (this.$refs.menu.$el.clientWidth < 1322) {
|
|
|
+ if (this.$refs.menu.$el.clientWidth < 1206) {
|
|
|
this.marginTrue = true
|
|
|
} else {
|
|
|
this.marginTrue = false
|