Skip to content

Commit

Permalink
fix(projects): menu fixedIndexInTab default null
Browse files Browse the repository at this point in the history
  • Loading branch information
paynezhuang committed Apr 26, 2024
1 parent 6b465c0 commit 3d10ef1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/typings/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/views/manage/menu/modules/menu-operate-drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function createDefaultModel(): Model {
keepAlive: false,
href: '',
multiTab: false,
fixedIndexInTab: 0,
fixedIndexInTab: null,
roles: [],
buttons: [],
query: {}
Expand Down

0 comments on commit 3d10ef1

Please sign in to comment.