diff --git a/src/layouts/modes/mix/index.vue b/src/layouts/modes/mix/index.vue index 02c40659..4f8cb4de 100644 --- a/src/layouts/modes/mix/index.vue +++ b/src/layouts/modes/mix/index.vue @@ -115,7 +115,7 @@ function resolvePath(routePath: string) { // 监听路由变化,确保左侧菜单能随TagsView切换而正确激活 watch( () => route.path, - (newPath) => { + (newPath: string) => { // 获取顶级路径 const topMenuPath = newPath.split("/").filter(Boolean).length > 1 ? newPath.match(/^\/[^/]+/)?.[0] || "/" : "/";