mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 14:47:28 +08:00
fix: fix the problem of closing multiple tabs
This commit is contained in:
@@ -28,10 +28,6 @@ export function genRouteModule(moduleList: AppRouteModule[]) {
|
||||
const flatList = (toRaw(router.getRoutes()).filter(
|
||||
(item) => item.children.length === 0
|
||||
) as unknown) as AppRouteRecordRaw[];
|
||||
try {
|
||||
(router as any) = null;
|
||||
} catch (error) {}
|
||||
|
||||
flatList.forEach((item) => {
|
||||
item.path = `${layout ? layout.path : ''}${item.path}`;
|
||||
});
|
||||
|
Reference in New Issue
Block a user