全屏
This commit is contained in:
@@ -49,6 +49,11 @@
|
|||||||
退出登录
|
退出登录
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</span>
|
</span>
|
||||||
|
<!-- <span style="display:block;" @click="goFullScreen">
|
||||||
|
<el-dropdown-item divided>
|
||||||
|
全屏
|
||||||
|
</el-dropdown-item>
|
||||||
|
</span> -->
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
@@ -213,6 +218,7 @@ export default {
|
|||||||
value: Cookies.get('theme')
|
value: Cookies.get('theme')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.goFullScreen()
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
open() {
|
||||||
this.$confirm('确定注销并退出系统吗?', '提示', {
|
this.$confirm('确定注销并退出系统吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
|
|||||||
Reference in New Issue
Block a user