Merge pull request #412 from paynezhuang/fix/menu_fixedInIndex

fix(projects): menu fixedIndexInTab default null and Tab fixedIndex
This commit is contained in:
Soybean 2024-04-27 02:02:28 +08:00 committed by GitHub
commit 42f950f819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 */
multiTab?: boolean;
/** 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 */
query: Record<string, string>;
/** menu buttons */

View File

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