田源
2024-04-11 76ef266068b240c93ebb174733c068d15829f310
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、ui 则为UI引擎
        if (['UI', 'ui'].includes(parts)) {
          component = 'views/base/UIContentViewer';
        }
        let name = oMenu[propsDefault.label],
          icon = oMenu[propsDefault.icon],
          children = oMenu[propsDefault.children],