Commit b300ef49 authored by yaya's avatar yaya

feat: 页面缓存优化

parent 232f14ae
<template> <template>
<div id="app"> <div id="app">
<router-view/> <keep-alive exclude="Hello">
<router-view v-if="$route.meta.keepAlive"/>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"/>
</div> </div>
</template> </template>
......
...@@ -386,7 +386,8 @@ export const asyncRouterMap = [ ...@@ -386,7 +386,8 @@ export const asyncRouterMap = [
perms: [], perms: [],
title: '寄售单列表', title: '寄售单列表',
icon: 'user', icon: 'user',
noCache: true noCache: true,
keepAlive: true
} }
}, },
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment