From bfedaf0182cac8fb947f1b0a3dee3d07c3c24f1e Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 21 七月 2023 19:33:29 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/public/src/router/avue-router.js |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/Source/UBCS-WEB/public/src/router/avue-router.js b/Source/UBCS-WEB/public/src/router/avue-router.js
index 6ec7291..0e68bda 100644
--- a/Source/UBCS-WEB/public/src/router/avue-router.js
+++ b/Source/UBCS-WEB/public/src/router/avue-router.js
@@ -99,8 +99,6 @@
       const propsDefault = {
         label: propsConfig.label || 'name',
         path: propsConfig.path || 'path',
-        fullPath: propsConfig.fullPath || 'fullPath',
-        query:propsConfig.query || 'query',
         icon: propsConfig.icon || 'icon',
         children: propsConfig.children || 'children',
         meta: propsConfig.meta || 'meta',
@@ -119,23 +117,9 @@
             } else {
               return oMenu[propsDefault.path]
             }
-          })();
-        let fullPath=path;
-        let query=oMenu[propsDefault.query] || {};
-        if(path.indexOf('?')!=-1){
-          let params=path.split('?')[1].split('&');
-          path=path.split('?')[0]
-          params.forEach(pitem=>{
-            try {
-              query[pitem.split('=')[0]]=pitem.split('=')[1];
-            }catch (e) {
-              query[pitem.split('=')[0]]=null;
-            }
-
-          })
-        }
+          })(),
           //鐗规畩澶勭悊缁勪欢 鎵ц瀹岃繖涓� component 涔熷氨鏄簿纭埌鍏蜂綋鐨勬枃浠朵簡  views鏂囦欢澶逛笅闈㈠氨鏄叿浣撶殑椤甸潰浠g爜
-          let component = 'views' + path,
+          component = 'views' + oMenu.path,
           name = oMenu[propsDefault.label],
           icon = oMenu[propsDefault.icon],
           children = oMenu[propsDefault.children],
@@ -152,8 +136,6 @@
         const isChild = children.length !== 0;
         const oRouter = {
           path: path,
-          fullPath:fullPath,
-          query:query,
           component(resolve) {
             // 鍒ゆ柇鏄惁涓洪璺敱
             if (first) {

--
Gitblit v1.9.3