wangting
2023-07-21 6d4ba6de5ad9b1a8f3b7b680aa3a3a2ce08b22a6
Source/UBCS-WEB/src/page/index/index.vue
@@ -18,9 +18,9 @@
        <!-- 主体视图层 -->
        <div style="height:100%;overflow-y:auto;overflow-x:hidden;" id="avue-view" v-show="!isSearch">
          <keep-alive>
            <router-view class="avue-view" v-if="$route.meta.keepAlive"/>
            <router-view class="avue-view" v-if="$route.meta.keepAlive" :key="$route.fullPath"/>
          </keep-alive>
          <router-view class="avue-view" v-if="!$route.meta.keepAlive"/>
          <router-view class="avue-view" v-if="!$route.meta.keepAlive" :key="$route.fullPath"/>
        </div>
      </div>
    </div>
@@ -98,6 +98,7 @@
      openMenu(item = {}) {
        this.$store.dispatch("GetMenu", item.id).then(data => {
          if (data.length !== 0) {
            debugger;
            this.$router.$avueRouter.formatRoutes(data, true);
          }
          //当点击顶部菜单后默认打开第一个菜单