From ccc59ace343de3ecdf2ca7c4d82966faaf3b32e7 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 14 十一月 2025 19:58:50 +0800
Subject: [PATCH] fix: bug
---
src/store/modules/permission.ts | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts
index 2fc37a5..ded2d45 100644
--- a/src/store/modules/permission.ts
+++ b/src/store/modules/permission.ts
@@ -38,7 +38,9 @@
accessedRoutes.push({ path: '/:pathMatch(.*)*', redirect: '/404', hidden: true });
this.addRoutes = accessedRoutes;
- this.routes = constantRoutes.concat(accessedRoutes);
+ this.routes = constantRoutes
+ .concat(accessedRoutes)
+ .sort((a, b) => (a.meta?.rank ?? 0) - (b.meta?.rank ?? 0));
resolve(accessedRoutes);
} catch (e) {
--
Gitblit v1.9.1