|
|
@@ -7,7 +7,7 @@
|
|
|
<div class="navbarBtn">
|
|
|
<!-- 用户 -->
|
|
|
<div class="userinfo">
|
|
|
- <img :src="userphoto" class="userheadImg" alt="" />{{ username }}
|
|
|
+ 欢迎您,{{ username }}
|
|
|
</div>
|
|
|
<!-- 标题 -->
|
|
|
<div class="caption">
|
|
|
@@ -28,12 +28,12 @@
|
|
|
<!-- 菜单 -->
|
|
|
<el-aside width="200px">
|
|
|
<el-menu
|
|
|
- default-active="/index/xycb"
|
|
|
+ :default-active="currRouter"
|
|
|
:collapse-transition="false"
|
|
|
class="el-menu-vertical-demo"
|
|
|
unique-opened
|
|
|
:router="isRouter"
|
|
|
- text-color="#333"
|
|
|
+ text-color="#333"
|
|
|
active-text-color="#fff"
|
|
|
>
|
|
|
<el-menu-item
|
|
|
@@ -91,6 +91,7 @@ export default {
|
|
|
6: 'iconfont icon-xitong'
|
|
|
},
|
|
|
userinfo:'',
|
|
|
+ currRouter:'/index/bzy',
|
|
|
menuList1: [{
|
|
|
"purview_name": "智能性诱测报",
|
|
|
"menu": "xycb",
|
|
|
@@ -154,6 +155,7 @@ export default {
|
|
|
watch: {
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.currRouter = this.$route.path
|
|
|
},
|
|
|
methods: {
|
|
|
getuserinfo() {
|
|
|
@@ -217,6 +219,7 @@ export default {
|
|
|
.navbarBtn {
|
|
|
color: #fff;
|
|
|
.userinfo {
|
|
|
+ font-size: 12px;
|
|
|
text-align: right;
|
|
|
margin-top: 10px;
|
|
|
.userheadImg {
|