Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
tianzhuanghu
ant-design-pro-vue
Commits
4530687e
Unverified
Commit
4530687e
authored
Feb 23, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update cleanup.
parent
7489dd9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+1
-4
router.config.js
src/config/router.config.js
+20
-1
No files found.
src/components/page/GlobalLayout.vue
View file @
4530687e
...
...
@@ -67,7 +67,6 @@
<a-layout-footer
style=
"padding: 0"
>
<global-footer
/>
</a-layout-footer>
<setting-drawer></setting-drawer>
</a-layout>
</a-layout>
</template>
...
...
@@ -76,7 +75,6 @@
import
SideMenu
from
'@/components/menu/SideMenu'
import
GlobalHeader
from
'@/components/page/GlobalHeader'
import
GlobalFooter
from
'@/components/page/GlobalFooter'
import
SettingDrawer
from
'@/components/setting/SettingDrawer'
import
{
triggerWindowResizeEvent
}
from
'@/utils/util'
import
{
mapState
,
mapActions
}
from
'vuex'
import
{
mixin
,
mixinDevice
}
from
'@/utils/mixin.js'
...
...
@@ -86,8 +84,7 @@ export default {
components
:
{
SideMenu
,
GlobalHeader
,
GlobalFooter
,
SettingDrawer
GlobalFooter
},
mixins
:
[
mixin
,
mixinDevice
],
data
()
{
...
...
src/config/router.config.js
View file @
4530687e
...
...
@@ -6,7 +6,26 @@ export const asyncRouterMap = [
{
path
:
'/'
,
name
:
'index'
,
component
:
()
=>
import
(
'@/views/dashboard'
)
component
:
BasicLayout
,
meta
:
{
title
:
'首页'
},
redirect
:
'/dashboard/workplace'
,
children
:
[
{
path
:
'/dashboard'
,
name
:
'dashboard'
,
redirect
:
'/dashboard/workplace'
,
component
:
RouteView
,
meta
:
{
title
:
'dashboard'
,
keepAlive
:
true
,
icon
:
'dashboard'
},
children
:
[
{
path
:
'/dashboard/workplace'
,
name
:
'Workplace'
,
component
:
()
=>
import
(
'@/views/dashboard'
),
meta
:
{
title
:
'工作台'
,
keepAlive
:
true
}
}
]
}
]
},
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
...
...
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