Commit 77591904 authored by jingnan's avatar jingnan 👀

进入APP默认显示菜单

parent d7f38f49
...@@ -210,6 +210,7 @@ export default { ...@@ -210,6 +210,7 @@ export default {
}, },
goHome() { goHome() {
this.$router.push(`/`) this.$router.push(`/`)
this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
}, },
back() { back() {
this.$router.push('/navigation') this.$router.push('/navigation')
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
v-show="!['系统管理','应用中心','安全中心','运维中心'].includes(activeModel.name)" v-show="!['系统管理','应用中心','安全中心','运维中心'].includes(activeModel.name)"
ref="homeLink" ref="homeLink"
class="home tags-view-item" class="home tags-view-item"
:to="{ path: '/'}" :to="{ path: '/',query:{showMenu:false}}"
tag="span" tag="span"
> >
<i class="el-icon-s-home" /> <i class="el-icon-s-home" />
......
...@@ -39,7 +39,6 @@ axios.interceptors.request.use( ...@@ -39,7 +39,6 @@ axios.interceptors.request.use(
return config.url.includes(el) return config.url.includes(el)
}) })
if (!disLoading) { if (!disLoading) {
console.log(12121)
loadingInstance = Loading.service({ loadingInstance = Loading.service({
fullscreen: true, fullscreen: true,
background: 'rgba(0, 0, 0, 0.0)' background: 'rgba(0, 0, 0, 0.0)'
......
...@@ -234,6 +234,7 @@ export default { ...@@ -234,6 +234,7 @@ export default {
toPage.query.menuRootAppId = app.id toPage.query.menuRootAppId = app.id
localStorage.setItem('moduleName', app.title) localStorage.setItem('moduleName', app.title)
this.$router.push(toPage) this.$router.push(toPage)
this.$store.dispatch('app/openSideBar', { withoutAnimation: false })
}, },
getActiveTab(menus) { getActiveTab(menus) {
for (let i = 0; i < menus.length; i++) { for (let i = 0; i < menus.length; i++) {
......
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