mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 20:01:28 +00:00
feat: dynamic switching components
This commit is contained in:
@@ -21,7 +21,6 @@ export const routesGen: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: "",
|
||||
name: "GeneralService",
|
||||
redirect: "/generalService",
|
||||
meta: {
|
||||
title: "generalService",
|
||||
icon: "chart",
|
||||
|
@@ -53,6 +53,10 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
(window as any).axiosCancel = [];
|
||||
}
|
||||
next();
|
||||
if (to.path === "/") {
|
||||
next({ path: "/generalService" });
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
});
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user