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
7047c6c8
Commit
7047c6c8
authored
Nov 18, 2018
by
smallwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入缓冲
parent
581e2937
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
5 deletions
+16
-5
website.js
src/const/website.js
+1
-1
index.vue
src/page/index/index.vue
+2
-2
avue-router.js
src/router/avue-router.js
+3
-2
index.vue
src/views/admin/menu/index.vue
+10
-0
No files found.
src/const/website.js
View file @
7047c6c8
...
...
@@ -17,7 +17,7 @@ export default {
]
},
//http的status默认放行不才用统一处理的,
statusWhiteList
:
[
400
],
statusWhiteList
:
[
400
,
500
],
//配置首页不可关闭
isFirstPage
:
false
,
fistPage
:
{
...
...
src/page/index/index.vue
View file @
7047c6c8
...
...
@@ -18,10 +18,10 @@
<el-scrollbar
style=
"height:100%"
>
<keep-alive>
<router-view
class=
"avue-view"
v-if=
"$route.meta.keepAlive"
/>
v-if=
"$route.meta.
$
keepAlive"
/>
</keep-alive>
<router-view
class=
"avue-view"
v-if=
"!$route.meta.keepAlive"
/>
v-if=
"!$route.meta.
$
keepAlive"
/>
</el-scrollbar>
</div>
...
...
src/router/avue-router.js
View file @
7047c6c8
...
...
@@ -85,8 +85,9 @@ RouterPlugin.install = function(router, store) {
name
=
oMenu
[
propsDefault
.
label
],
icon
=
oMenu
[
propsDefault
.
icon
],
children
=
oMenu
[
propsDefault
.
children
],
meta
=
oMenu
[
propsDefault
.
meta
];
meta
=
{
keepAlive
:
Number
(
oMenu
[
'keepalive'
])
===
0
}
const
isChild
=
children
.
length
!==
0
;
const
oRouter
=
{
path
:
path
,
...
...
src/views/admin/menu/index.vue
View file @
7047c6c8
...
...
@@ -105,6 +105,16 @@
:disabled=
"formEdit"
placeholder=
"请输入排序"
></el-input>
</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=
"前端组件"
prop=
"component"
>
<el-input
v-model=
"form.component"
...
...
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