mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 03:42:57 +08:00
fix issues-179
This commit is contained in:
parent
fa1e54a12f
commit
960d537e7a
|
@ -59,7 +59,7 @@ export const useTabsRouterStore = defineStore('tabsRouter', {
|
|||
// 处理关闭其他
|
||||
subtractTabRouterOther(newRoute: TRouterInfo) {
|
||||
const { routeIdx } = newRoute;
|
||||
this.tabRouterList = homeRoute.concat([this.tabRouterList?.[routeIdx]]);
|
||||
this.tabRouterList = routeIdx === 0 ? homeRoute : homeRoute.concat([this.tabRouterList?.[routeIdx]]);
|
||||
},
|
||||
removeTabRouterList() {
|
||||
this.tabRouterList = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user