refactor: ♻️ 代码重构优化

This commit is contained in:
hxr
2024-01-18 11:52:59 +08:00
parent 5a68c85821
commit 3ba751accb
6 changed files with 231 additions and 105 deletions

View File

@@ -46,7 +46,7 @@ function resolvePath(routePath: string) {
</script>
<template>
<el-menu
:default-active="layout === 'top' ? '-' : currRoute.path"
:default-active="currRoute.path"
:collapse="!appStore.sidebar.opened"
:background-color="variables.menuBg"
:text-color="variables.menuText"