Commit 723bb268 authored by guxukai's avatar guxukai

chore: menu高亮调整

parent 7af1519d
......@@ -106,7 +106,7 @@
</template>
<script lang="ts" setup>
import { onBeforeRouteUpdate, useRoute, useRouter } from 'vue-router'
import { ref, toRaw, onMounted, getCurrentInstance } from 'vue'
import { ref, toRaw, onMounted, getCurrentInstance, computed } from 'vue'
import { ArrowRight } from '@element-plus/icons-vue'
import AsideMenuList from '@shared/layouts/components/aside-menu-list/index.vue'
import { useRequest } from 'vue-request'
......@@ -122,10 +122,9 @@ const layoutStore = useLayout()
const PROJECT_NAME = process.env.APP_NAME
const $route = useRoute()
const $router = useRouter()
let currentActiveRoute = ref('home')
const currentActiveRoute = computed(() => $route.name as string)
onMounted(() => {
setTheme(false)
currentActiveRoute.value = $route.name as string
})
/**
* @description 面包屑导航和侧边导航
......
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