mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
Merge branch '250220-pre-126-177-gx' into test20250220
This commit is contained in:
@@ -388,8 +388,12 @@ export default {
|
|||||||
window.addEventListener("F", () => {
|
window.addEventListener("F", () => {
|
||||||
this.isFullscreen = this.isFullScreen();
|
this.isFullscreen = this.isFullScreen();
|
||||||
});
|
});
|
||||||
window.addEventListener("esc", () => {
|
window.addEventListener("keydown", (e) => {
|
||||||
this.toggleFullScreen();
|
console.log("是否监听到");
|
||||||
|
if(e.keyCode == 27){
|
||||||
|
console.log("是否监听到 esc");
|
||||||
|
this.toggleFullScreen();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Reference in New Issue
Block a user