mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 08:56:29 +08:00
commit
6bb22945e2
|
@ -55,10 +55,10 @@
|
||||||
"lint-staged": "^12.1.2",
|
"lint-staged": "^12.1.2",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"prettier": "^2.4.1",
|
"prettier": "^2.4.1",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "~13.13.1",
|
||||||
"stylelint-config-prettier": "^9.0.3",
|
"stylelint-config-prettier": "~9.0.3",
|
||||||
"stylelint-less": "^1.0.1",
|
"stylelint-less": "1.0.1",
|
||||||
"stylelint-order": "^4.1.0",
|
"stylelint-order": "~4.1.0",
|
||||||
"typescript": "~4.4.3",
|
"typescript": "~4.4.3",
|
||||||
"vite": "^2.7.1",
|
"vite": "^2.7.1",
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
|
|
|
@ -59,7 +59,7 @@ export const useTabsRouterStore = defineStore('tabsRouter', {
|
||||||
// 处理关闭其他
|
// 处理关闭其他
|
||||||
subtractTabRouterOther(newRoute: TRouterInfo) {
|
subtractTabRouterOther(newRoute: TRouterInfo) {
|
||||||
const { routeIdx } = newRoute;
|
const { routeIdx } = newRoute;
|
||||||
this.tabRouterList = homeRoute.concat([this.tabRouterList?.[routeIdx]]);
|
this.tabRouterList = routeIdx === 0 ? homeRoute : homeRoute.concat([this.tabRouterList?.[routeIdx]]);
|
||||||
},
|
},
|
||||||
removeTabRouterList() {
|
removeTabRouterList() {
|
||||||
this.tabRouterList = [];
|
this.tabRouterList = [];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user