|
@@ -17,7 +17,7 @@
|
|
|
<div class="avatar-wrapper">
|
|
|
<img :src="avatar" class="user-avatar" />
|
|
|
<span style="">
|
|
|
- <button class="jianbiase">{{userName}}</button>
|
|
|
+ <button class="jianbiase">{{userName || '默认用户'}}</button>
|
|
|
</span>
|
|
|
<i class="el-icon-caret-bottom" />
|
|
|
</div>
|
|
@@ -87,6 +87,11 @@ export default {
|
|
|
Sidebar,
|
|
|
TagsView,
|
|
|
},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ userName: '默认用户',
|
|
|
+ };
|
|
|
+ },
|
|
|
mixins: [ResizeMixin],
|
|
|
computed: {
|
|
|
...mapState({
|