|
|
@@ -73,7 +73,7 @@
|
|
|
// 是否是全屏
|
|
|
fullscreen: Boolean
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
// 是否显示修改密码弹窗
|
|
|
passwordVisible: false,
|
|
|
@@ -83,13 +83,13 @@
|
|
|
},
|
|
|
computed: {
|
|
|
// 当前用户信息
|
|
|
- loginUser () {
|
|
|
+ loginUser() {
|
|
|
return this.$store.state.user.info;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
/* 用户信息下拉点击事件 */
|
|
|
- onUserDropClick (command) {
|
|
|
+ onUserDropClick(command) {
|
|
|
if (command === 'password') {
|
|
|
this.passwordVisible = true;
|
|
|
} else if (command === 'profile') {
|
|
|
@@ -114,11 +114,11 @@
|
|
|
}
|
|
|
},
|
|
|
/* 全屏切换 */
|
|
|
- toggleFullscreen () {
|
|
|
+ toggleFullscreen() {
|
|
|
this.$emit('fullscreen');
|
|
|
},
|
|
|
/* 打开设置抽屉 */
|
|
|
- openSetting () {
|
|
|
+ openSetting() {
|
|
|
this.settingVisible = true;
|
|
|
}
|
|
|
}
|