diff --git a/cspell.json b/cspell.json index b654d5652..f1071a848 100644 --- a/cspell.json +++ b/cspell.json @@ -12,11 +12,13 @@ "axios", "brotli", "cascader", + "chatcmpl", "clsx", "dedup", "defu", "demi", "dotenv", + "echart", "echarts", "ependencies", "esbuild", diff --git a/package.json b/package.json index 824da561f..af2b49b6c 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "changeset": "pnpm exec changeset", "check": "pnpm run check:circular && pnpm run check:dep && pnpm run check:type && pnpm check:cspell", "check:circular": "vsh check-circular", - "check:cspell": "cspell lint **/*.ts **/README.md .changeset/*.md --no-progress", + "check:cspell": "cspell lint \"**/*.ts\" \"**/README.md\" \".changeset/*.md\" --no-progress", "check:dep": "vsh check-dep", "check:type": "turbo run typecheck", "clean": "node ./scripts/clean.mjs", diff --git a/packages/@core/base/typings/src/menu-record.ts b/packages/@core/base/typings/src/menu-record.ts index 21f6ab516..8c4509957 100644 --- a/packages/@core/base/typings/src/menu-record.ts +++ b/packages/@core/base/typings/src/menu-record.ts @@ -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; /** * 是否显示菜单 * @default true diff --git a/packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue b/packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue index eba4ec29f..11e4081c4 100644 --- a/packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue +++ b/packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue @@ -307,14 +307,14 @@ onUnmounted(() => {