Commit 34ad2d86 authored by 萌萌哒SAKURA酱's avatar 萌萌哒SAKURA酱

Refactoring code:Rename menu keepalive to keepAlive

parent 83129b83
...@@ -86,7 +86,7 @@ RouterPlugin.install = function(router, store) { ...@@ -86,7 +86,7 @@ RouterPlugin.install = function(router, store) {
icon = oMenu[propsDefault.icon], icon = oMenu[propsDefault.icon],
children = oMenu[propsDefault.children], children = oMenu[propsDefault.children],
meta = { meta = {
keepAlive: Number(oMenu['keepalive']) === 0 keepAlive: Number(oMenu['keepAlive']) === 0
} }
const isChild = children.length !== 0; const isChild = children.length !== 0;
const oRouter = { const oRouter = {
......
...@@ -118,9 +118,9 @@ ...@@ -118,9 +118,9 @@
:disabled="formEdit" :disabled="formEdit"
placeholder="iframe嵌套地址"></el-input> placeholder="iframe嵌套地址"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="页面缓冲" <el-form-item label="路由缓冲"
prop="component"> prop="component">
<el-switch v-model="form.keepalive" <el-switch v-model="form.keepAlive"
:disabled="formEdit" :disabled="formEdit"
active-color="#13ce66" active-color="#13ce66"
inactive-color="#ff4949" inactive-color="#ff4949"
......
...@@ -3,6 +3,7 @@ module.exports = { ...@@ -3,6 +3,7 @@ module.exports = {
lintOnSave: true, lintOnSave: true,
productionSourceMap: false, productionSourceMap: false,
chainWebpack: (config) => { chainWebpack: (config) => {
// 忽略的打包文件
config.externals({ config.externals({
'vue': 'Vue', 'vue': 'Vue',
'vue-router': 'VueRouter', 'vue-router': 'VueRouter',
...@@ -12,7 +13,7 @@ module.exports = { ...@@ -12,7 +13,7 @@ module.exports = {
}) })
}, },
transpileDependencies: ['avue-plugin-transfer', 'avue-plugin-ueditor'], transpileDependencies: ['avue-plugin-transfer', 'avue-plugin-ueditor'],
//配置转发代理 // 配置转发代理
devServer: { devServer: {
proxy: { proxy: {
'/auth': { '/auth': {
......
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