Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Guten-PigxUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄卓然
Guten-PigxUI
Commits
34ad2d86
Commit
34ad2d86
authored
Nov 29, 2018
by
萌萌哒SAKURA酱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
♻
Refactoring code:Rename menu keepalive to keepAlive
parent
83129b83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
avue-router.js
src/router/avue-router.js
+1
-1
index.vue
src/views/admin/menu/index.vue
+2
-2
vue.config.js
vue.config.js
+2
-1
No files found.
src/router/avue-router.js
View file @
34ad2d86
...
...
@@ -86,7 +86,7 @@ RouterPlugin.install = function(router, store) {
icon
=
oMenu
[
propsDefault
.
icon
],
children
=
oMenu
[
propsDefault
.
children
],
meta
=
{
keepAlive
:
Number
(
oMenu
[
'keep
a
live'
])
===
0
keepAlive
:
Number
(
oMenu
[
'keep
A
live'
])
===
0
}
const
isChild
=
children
.
length
!==
0
;
const
oRouter
=
{
...
...
src/views/admin/menu/index.vue
View file @
34ad2d86
...
...
@@ -118,9 +118,9 @@
:disabled=
"formEdit"
placeholder=
"iframe嵌套地址"
></el-input>
</el-form-item>
<el-form-item
label=
"
页面
缓冲"
<el-form-item
label=
"
路由
缓冲"
prop=
"component"
>
<el-switch
v-model=
"form.keep
a
live"
<el-switch
v-model=
"form.keep
A
live"
:disabled=
"formEdit"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
...
...
vue.config.js
View file @
34ad2d86
...
...
@@ -3,6 +3,7 @@ module.exports = {
lintOnSave
:
true
,
productionSourceMap
:
false
,
chainWebpack
:
(
config
)
=>
{
// 忽略的打包文件
config
.
externals
({
'vue'
:
'Vue'
,
'vue-router'
:
'VueRouter'
,
...
...
@@ -12,7 +13,7 @@ module.exports = {
})
},
transpileDependencies
:
[
'avue-plugin-transfer'
,
'avue-plugin-ueditor'
],
//配置转发代理
//
配置转发代理
devServer
:
{
proxy
:
{
'/auth'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment