Commit c8c52399 by chehuidong

bug

parent 0d1fb809
...@@ -61,3 +61,15 @@ ...@@ -61,3 +61,15 @@
.el-dialog__body { .el-dialog__body {
padding: 10px; padding: 10px;
} }
.pagination {
text-align: center;
padding-top: 10px;
}
.icon-view{
font-size: 18px;
cursor: pointer;
}
.icon-view + .icon-view{
margin-left: 10px;
}
\ No newline at end of file
...@@ -6,14 +6,10 @@ ...@@ -6,14 +6,10 @@
<script> <script>
import pageTags from './pageTags.vue' import pageTags from './pageTags.vue'
import { mapState } from 'vuex'
export default { export default {
components: { pageTags }, components: { pageTags },
name: 'HomeHeader', name: 'HomeHeader',
computed: { computed: {},
...mapState(['userInfo']),
},
methods: {}, methods: {},
} }
</script> </script>
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
@click.native="onClickMenus" @click.native="onClickMenus"
active-text-color="#ffd04b" active-text-color="#ffd04b"
> >
<template v-for="nav in menuList"> <template v-for="(nav,index) in menuList">
<el-menu-item <el-menu-item
:key="nav.id" :key="index"
v-if="nav.children.length === 0" v-if="nav.children.length === 0"
:index="nav.index" :index="nav.index"
> >
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
<span class="label">{{ nav.label }}</span> <span class="label">{{ nav.label }}</span>
</template> </template>
</el-menu-item> </el-menu-item>
<el-submenu :key="nav.id" v-else :index="nav.index"> <el-submenu :key="index" v-else :index="nav.index">
<template slot="title"> <template slot="title">
<i :class="nav.icon"></i> <i :class="nav.icon"></i>
<span class="label">{{ nav.label }}</span> <span class="label">{{ nav.label }}</span>
</template> </template>
<el-menu-item <el-menu-item
:index="subs.index" :index="subs.index"
v-for="subs in nav.children" v-for="(subs, index) in nav.children"
:key="subs.id" :key="index"
> >
<template slot="title"> <template slot="title">
<i :class="subs.icon"></i> <i :class="subs.icon"></i>
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters, mapState } from 'vuex'
import { logout } from '@/common/api/login' import { logout } from '@/common/api/login'
import { setToken, setUser } from '@/utils/auth' import { setToken, setUser } from '@/utils/auth'
export default { export default {
...@@ -121,6 +121,7 @@ export default { ...@@ -121,6 +121,7 @@ export default {
}, },
computed: { computed: {
...mapGetters('tags', ['currentTag']), ...mapGetters('tags', ['currentTag']),
...mapState(['userInfo']),
}, },
watch: { watch: {
currentTag(v) { currentTag(v) {
......
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