fix(projects): menu fixedIndexInTab default null

This commit is contained in:
paynezhuang 2024-04-27 00:03:17 +08:00
parent 6b465c0ebd
commit 3d10ef1a90
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ declare namespace Api {
/** By default, the same route path will use one tab, if set to true, it will use multiple tabs */ /** By default, the same route path will use one tab, if set to true, it will use multiple tabs */
multiTab?: boolean; multiTab?: boolean;
/** If set, the route will be fixed in tabs, and the value is the order of fixed tabs */ /** If set, the route will be fixed in tabs, and the value is the order of fixed tabs */
fixedIndexInTab?: number; fixedIndexInTab?: number | null;
/** if set query parameters, it will be automatically carried when entering the route */ /** if set query parameters, it will be automatically carried when entering the route */
query: Record<string, string>; query: Record<string, string>;
/** menu buttons */ /** menu buttons */

View File

@ -105,7 +105,7 @@ function createDefaultModel(): Model {
keepAlive: false, keepAlive: false,
href: '', href: '',
multiTab: false, multiTab: false,
fixedIndexInTab: 0, fixedIndexInTab: null,
roles: [], roles: [],
buttons: [], buttons: [],
query: {} query: {}