fix: 修复执行: check:cspell 命令路径参数传入没有转义导致检测路径失效。添加菜单右键功能。优化:多余监听 activePath 变化,自动滚动到激活项 watch

This commit is contained in:
lmx
2026-03-04 18:25:15 +08:00
parent 2a86404ba5
commit 173e6b08c9
9 changed files with 77 additions and 44 deletions

View File

@@ -1,6 +1,8 @@
import type { Component } from 'vue';
import type { RouteRecordRaw } from 'vue-router';
import type { Recordable } from './helper';
/**
* 扩展路由原始对象
*/
@@ -66,6 +68,10 @@ interface MenuRecordRaw extends MenuRecordBadgeRaw {
* 菜单路径,唯一,可当作key
*/
path: string;
/**
* 菜单参数
*/
query?: Recordable<any>;
/**
* 是否显示菜单
* @default true