v2.0 更新vite3.2.3,速度非常快

This commit is contained in:
zhuoda
2022-11-13 21:21:16 +08:00
parent 5bd36cb42e
commit 945e31290e
9 changed files with 83 additions and 82 deletions

View File

@@ -59,8 +59,8 @@
const openKeys = ref([]);
// 页面跳转
function turnToPage(route) {
router.push({ name: route.menuId.toString() });
function turnToPage(menu) {
router.push({ path: menu.path });
}
/**

View File

@@ -39,7 +39,7 @@
});
const emits = defineEmits(['turnToPage']);
const turnToPage = (route) => {
emits('turnToPage', route);
const turnToPage = (menu) => {
emits('turnToPage', menu);
};
</script>

View File

@@ -226,7 +226,7 @@
}
.layout-header {
background: @primary-7;
background: @primary-color;
padding: 0;
z-index: 999;
color: white;

View File

@@ -56,13 +56,15 @@
:url="item.meta.frameUrl"
/>
<!--非iframe使用router-view-->
<router-view v-show="!iframeNotKeepAlivePageFlag && keepAliveIframePages.every((e) => route.name != e.name)" v-slot="{ Component }">
<keep-alive :include="keepAliveIncludes">
<div :key="route.name" style="height:100%">
<component :is="Component" />
</div>
</keep-alive>
</router-view>
<div v-show="!iframeNotKeepAlivePageFlag && keepAliveIframePages.every((e) => route.name != e.name)">
<router-view v-slot="{ Component }">
<keep-alive :include="keepAliveIncludes">
<div :key="route.name" style="height: 100%">
<component :is="Component" />
</div>
</keep-alive>
</router-view>
</div>
</a-layout-content>
<!-- footer 版权公司信息 -->
<a-layout-footer class="smart-layout-footer" v-show="footerFlag"> <SmartFooter /></a-layout-footer>

View File

@@ -47,13 +47,13 @@
:url="item.meta.frameUrl"
/>
<!--非iframe使用router-view-->
<router-view v-show="!iframeNotKeepAlivePageFlag && keepAliveIframePages.every((e) => route.name != e.name)" v-slot="{ Component }">
<keep-alive :include="keepAliveIncludes">
<div :key="route.name" style="height: 100%">
<component :is="Component" />
</div>
</keep-alive>
</router-view>
<div v-show="!iframeNotKeepAlivePageFlag && keepAliveIframePages.every((e) => route.name != e.name)">
<router-view v-slot="{ Component }">
<keep-alive :include="keepAliveIncludes">
<component :is="Component" :key="route.name" />
</keep-alive>
</router-view>
</div>
</a-layout-content>
<!-- footer 版权公司信息 -->