Commit 7047c6c8 authored by smallwei's avatar smallwei

加入缓冲

parent 581e2937
...@@ -17,7 +17,7 @@ export default { ...@@ -17,7 +17,7 @@ export default {
] ]
}, },
//http的status默认放行不才用统一处理的, //http的status默认放行不才用统一处理的,
statusWhiteList: [400], statusWhiteList: [400, 500],
//配置首页不可关闭 //配置首页不可关闭
isFirstPage: false, isFirstPage: false,
fistPage: { fistPage: {
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
<el-scrollbar style="height:100%"> <el-scrollbar style="height:100%">
<keep-alive> <keep-alive>
<router-view class="avue-view" <router-view class="avue-view"
v-if="$route.meta.keepAlive" /> v-if="$route.meta.$keepAlive" />
</keep-alive> </keep-alive>
<router-view class="avue-view" <router-view class="avue-view"
v-if="!$route.meta.keepAlive" /> v-if="!$route.meta.$keepAlive" />
</el-scrollbar> </el-scrollbar>
</div> </div>
......
...@@ -85,8 +85,9 @@ RouterPlugin.install = function(router, store) { ...@@ -85,8 +85,9 @@ RouterPlugin.install = function(router, store) {
name = oMenu[propsDefault.label], name = oMenu[propsDefault.label],
icon = oMenu[propsDefault.icon], icon = oMenu[propsDefault.icon],
children = oMenu[propsDefault.children], children = oMenu[propsDefault.children],
meta = oMenu[propsDefault.meta]; meta = {
keepAlive: Number(oMenu['keepalive']) === 0
}
const isChild = children.length !== 0; const isChild = children.length !== 0;
const oRouter = { const oRouter = {
path: path, path: path,
......
...@@ -105,6 +105,16 @@ ...@@ -105,6 +105,16 @@
:disabled="formEdit" :disabled="formEdit"
placeholder="请输入排序"></el-input> placeholder="请输入排序"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="页面缓冲"
prop="component">
<el-switch v-model="form.keepalive"
:disabled="formEdit"
active-color="#13ce66"
inactive-color="#ff4949"
:active-value="0"
:inactive-value="1">
</el-switch>
</el-form-item>
<el-form-item label="前端组件" <el-form-item label="前端组件"
prop="component"> prop="component">
<el-input v-model="form.component" <el-input v-model="form.component"
......
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