diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index b81b1424..7e85dd2e 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -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; /** menu buttons */ diff --git a/src/views/manage/menu/modules/menu-operate-drawer.vue b/src/views/manage/menu/modules/menu-operate-drawer.vue index dd29c34a..3ef3dd9f 100644 --- a/src/views/manage/menu/modules/menu-operate-drawer.vue +++ b/src/views/manage/menu/modules/menu-operate-drawer.vue @@ -105,7 +105,7 @@ function createDefaultModel(): Model { keepAlive: false, href: '', multiTab: false, - fixedIndexInTab: 0, + fixedIndexInTab: null, roles: [], buttons: [], query: {}