diff --git a/frontend/src/components/layout-content/index.vue b/frontend/src/components/layout-content/index.vue index 56b4ea84c..6874aa250 100644 --- a/frontend/src/components/layout-content/index.vue +++ b/frontend/src/components/layout-content/index.vue @@ -36,7 +36,7 @@ - + {{ title }} diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index ec6233be8..89d13798d 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -13,7 +13,7 @@ - - + + @@ -55,13 +55,7 @@ import PrimaryMenu from '@/assets/images/menu-bg.svg?component'; const route = useRoute(); const menuStore = MenuStore(); const globalStore = GlobalStore(); -defineProps({ - menuRouter: { - type: Boolean, - default: true, - required: false, - }, -}); + const activeMenu = computed(() => { const { meta, path } = route; return isString(meta.activeMenu) ? meta.activeMenu : path; @@ -201,13 +195,6 @@ onMounted(() => { line-height: normal; } -.custom-menu .el-menu-item { - white-space: normal !important; - word-break: break-word; - overflow-wrap: break-word; - line-height: normal; -} - .sidebar-container { position: relative; display: flex; diff --git a/frontend/src/layout/index.vue b/frontend/src/layout/index.vue index f4ba5f031..8416cca2f 100644 --- a/frontend/src/layout/index.vue +++ b/frontend/src/layout/index.vue @@ -2,7 +2,7 @@
- +
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 11c0c1923..a4280520f 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -85,7 +85,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { ], esbuild: { pure: viteEnv.VITE_DROP_CONSOLE ? ['console.log'] : [], - drop: viteEnv.VITE_DROP_CONSOLE ? ['debugger'] : [], + drop: viteEnv.VITE_DROP_CONSOLE && process.env.NODE_ENV === 'production' ? ['debugger'] : [], }, build: { outDir: '../cmd/server/web',