diff --git a/src/App.vue b/src/App.vue index df12179..c8df114 100644 --- a/src/App.vue +++ b/src/App.vue @@ -54,7 +54,8 @@ onMounted(() => { .app-container { width: 100vw; padding-bottom: 20px; - background-image: url("@/assets/images/bci.png"); + background: url("@/assets/images/bci.png"); + background-size: cover; background-repeat: no-repeat; background-position: center; background-color: #02131f; diff --git a/src/layout/components/aside/index.vue b/src/layout/components/aside/index.vue index f247f1e..580b154 100644 --- a/src/layout/components/aside/index.vue +++ b/src/layout/components/aside/index.vue @@ -108,7 +108,10 @@ const jumpPage = (routePath) => { } onMounted(() => { - jumpPage("/key-node-1") + //判读是否是第一次重定向的页面 + if (route.path == "/home") { + jumpPage("/key-node-1") + } }) @@ -116,7 +119,6 @@ onMounted(() => { .aside-component { width: 100%; height: 100%; - .menu { width: 320px; height: 100%; diff --git a/src/layout/index.vue b/src/layout/index.vue index b626540..c19d063 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -29,7 +29,7 @@ const handleOpenDialog = (isOpen) => { } -