This commit is contained in:
parent
0c7637f507
commit
ea8df2a3b3
|
|
@ -49,6 +49,11 @@
|
|||
退出登录
|
||||
</el-dropdown-item>
|
||||
</span>
|
||||
<!-- <span style="display:block;" @click="goFullScreen">
|
||||
<el-dropdown-item divided>
|
||||
全屏
|
||||
</el-dropdown-item>
|
||||
</span> -->
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
</div>
|
||||
|
|
@ -213,6 +218,7 @@ export default {
|
|||
value: Cookies.get('theme')
|
||||
})
|
||||
}
|
||||
this.goFullScreen()
|
||||
},
|
||||
methods: {
|
||||
// 修改密码框类型
|
||||
|
|
@ -248,6 +254,17 @@ export default {
|
|||
}
|
||||
})
|
||||
},
|
||||
goFullScreen() {
|
||||
if (document.documentElement.requestFullscreen) {
|
||||
document.documentElement.requestFullscreen();
|
||||
} else if (document.documentElement.mozRequestFullScreen) { /* Firefox */
|
||||
document.documentElement.mozRequestFullScreen();
|
||||
} else if (document.documentElement.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
|
||||
document.documentElement.webkitRequestFullscreen();
|
||||
} else if (document.documentElement.msRequestFullscreen) { /* IE/Edge */
|
||||
document.documentElement.msRequestFullscreen();
|
||||
}
|
||||
},
|
||||
open() {
|
||||
this.$confirm('确定注销并退出系统吗?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
|
|
|
|||
Loading…
Reference in New Issue