From aaf8a50511d77dbc209ca93bbba308c21179a8bc Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 31 三月 2026 15:38:47 +0800
Subject: [PATCH] #前端

---
 rsf-design/src/router/core/RouteValidator.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/rsf-design/src/router/core/RouteValidator.js b/rsf-design/src/router/core/RouteValidator.js
index 1be4918..044887c 100644
--- a/rsf-design/src/router/core/RouteValidator.js
+++ b/rsf-design/src/router/core/RouteValidator.js
@@ -1,4 +1,4 @@
-import { RoutesAlias } from '../routesAlias'
+import { RoutesAlias } from '../routesAlias.js'
 class RouteValidator {
   constructor() {
     this.warnedRoutes = new Set()
@@ -23,11 +23,19 @@
    */
   checkDuplicates(routes, errors, warnings, parentPath = '') {
     const routeNameMap = /* @__PURE__ */ new Map()
+    const routePathMap = /* @__PURE__ */ new Map()
     const componentPathMap = /* @__PURE__ */ new Map()
     const checkRoutes = (routes2, parentPath2 = '') => {
       routes2.forEach((route) => {
         const currentPath = route.path || ''
         const fullPath = this.resolvePath(parentPath2, currentPath)
+        if (fullPath) {
+          if (routePathMap.has(fullPath)) {
+            warnings.push(`璺敱璺緞閲嶅: "${fullPath}"`)
+          } else {
+            routePathMap.set(fullPath, String(route.name || fullPath))
+          }
+        }
         if (route.name) {
           const routeName = String(route.name)
           if (routeNameMap.has(routeName)) {

--
Gitblit v1.9.1