From 76ef266068b240c93ebb174733c068d15829f310 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 11 四月 2024 10:54:14 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/ProjectWeb/src/router/avue-router.js | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Source/ProjectWeb/src/router/avue-router.js b/Source/ProjectWeb/src/router/avue-router.js index fb9f9e2..dd431b5 100644 --- a/Source/ProjectWeb/src/router/avue-router.js +++ b/Source/ProjectWeb/src/router/avue-router.js @@ -1,3 +1,5 @@ +import {validatenull} from "@/util/validate"; + let RouterPlugin = function () { this.$router = null; this.$store = null; @@ -131,22 +133,18 @@ } else { parts = path; // 涓嶅瓨鍦� '?' 鏁存潯璺緞灏辨槸 parts } - - // 濡傛灉闂彿鍓嶉潰閮ㄥ垎涓嶅湪 ['ui', 'UI', 'base'] 涓紝鍒欐槸鑷畾涔夌粍浠� - if (!['ui', 'UI', 'base'].includes(parts)) { - component = `views/custom-ui/${parts}`; + if(validatenull(parts)){ + parts='UI'; } - - // 濡傛灉闂彿鍓嶉潰绛変簬绌猴紝鍒欓粯璁や负UI寮曟搸 - if (!parts) { - component = 'views/base/UIContentViewer'; + // 濡傛灉闂彿鍓嶉潰閮ㄥ垎涓嶅湪 ['ui', 'UI', 'base'] 涓紝鍒欐槸鑷畾涔夌粍浠� + if (!['ui', 'UI', 'base','bs'].includes(parts)) { + component = `views/custom-ui/${parts}`; } // 濡傛灉闂彿鍓嶉潰绛変簬 UI銆乽i 鍒欎负UI寮曟搸 if (['UI', 'ui'].includes(parts)) { component = 'views/base/UIContentViewer'; } - let name = oMenu[propsDefault.label], icon = oMenu[propsDefault.icon], children = oMenu[propsDefault.children], -- Gitblit v1.9.3