mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-08 15:35:36 +00:00
fix: 全屏预览时深色皮肤反色的情况
This commit is contained in:
parent
6cce7d31ff
commit
60b5ecdcd7
@ -85,6 +85,7 @@ export default {
|
|||||||
window.addEventListener('resize', this.windowSizeListener)
|
window.addEventListener('resize', this.windowSizeListener)
|
||||||
window.addEventListener('scroll', this.windowScrollListener)
|
window.addEventListener('scroll', this.windowScrollListener)
|
||||||
window.addEventListener('message', this.windowHandleMessage)
|
window.addEventListener('message', this.windowHandleMessage)
|
||||||
|
window.addEventListener('fullscreenchange', this.handleFullscreenchange);
|
||||||
this.appInter = setInterval(this.appTimerHandler, 1000)
|
this.appInter = setInterval(this.appTimerHandler, 1000)
|
||||||
$A.loadVConsole()
|
$A.loadVConsole()
|
||||||
},
|
},
|
||||||
@ -93,6 +94,7 @@ export default {
|
|||||||
window.removeEventListener('resize', this.windowSizeListener)
|
window.removeEventListener('resize', this.windowSizeListener)
|
||||||
window.removeEventListener('scroll', this.windowScrollListener)
|
window.removeEventListener('scroll', this.windowScrollListener)
|
||||||
window.removeEventListener('message', this.windowHandleMessage)
|
window.removeEventListener('message', this.windowHandleMessage)
|
||||||
|
window.removeEventListener('fullscreenchange', this.handleFullscreenchange);
|
||||||
this.appInter && clearInterval(this.appInter)
|
this.appInter && clearInterval(this.appInter)
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -293,6 +295,14 @@ export default {
|
|||||||
document.documentElement.setAttribute("data-platform", $A.isElectron ? "desktop" : $A.isEEUiApp ? "app" : "web")
|
document.documentElement.setAttribute("data-platform", $A.isElectron ? "desktop" : $A.isEEUiApp ? "app" : "web")
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleFullscreenchange() {
|
||||||
|
if (document.fullscreenElement) {
|
||||||
|
$A("body").addClass("fullscreen-mode")
|
||||||
|
} else {
|
||||||
|
$A("body").removeClass("fullscreen-mode")
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取链接打开方式
|
* 获取链接打开方式
|
||||||
* @param url
|
* @param url
|
||||||
|
|||||||
6
resources/assets/js/functions/web.js
vendored
6
resources/assets/js/functions/web.js
vendored
@ -1047,7 +1047,11 @@ import {convertLocalResourcePath} from "../components/Replace/utils";
|
|||||||
.no-dark-content [style*="background-image:url"],
|
.no-dark-content [style*="background-image:url"],
|
||||||
.no-dark-content [style*="background: url"],
|
.no-dark-content [style*="background: url"],
|
||||||
.no-dark-content [style*="background-image: url"],
|
.no-dark-content [style*="background-image: url"],
|
||||||
.no-dark-content [background] {
|
.no-dark-content [background],
|
||||||
|
.fullscreen-mode img,
|
||||||
|
.fullscreen-mode video,
|
||||||
|
.fullscreen-mode iframe,
|
||||||
|
.fullscreen-mode canvas {
|
||||||
${this.utils.noneFilter()}
|
${this.utils.noneFilter()}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user