|
|
|
@ -108,9 +108,9 @@ export default { |
|
|
|
|
this.showMoreBtns = false |
|
|
|
|
this.menus = menuVisibleData |
|
|
|
|
} |
|
|
|
|
if (data.length) { |
|
|
|
|
if (!this.$route.query.id && !this.$route.query.articleId && this.$route.path !== '/column/result') this.$router.replace(`/column?id=${data[0].id}&siteId=${data[0].siteId}`) |
|
|
|
|
if (!this.active) this.active = data[0].id |
|
|
|
|
if (menuVisibleData.length) { |
|
|
|
|
if (!this.$route.query.id && !this.$route.query.articleId && this.$route.path !== '/column/result') this.$router.replace(`/column?id=${menuVisibleData[0].id}&siteId=${menuVisibleData[0].siteId}`) |
|
|
|
|
if (!this.active) this.active = menuVisibleData[0].id |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
const menu = document.querySelectorAll('.el-submenu') |
|
|
|
|
for (let i = 0; i < menu.length; i++) { |
|
|
|
|