no message

This commit is contained in:
kuaifan 2023-03-16 09:23:24 +08:00
parent 7a7d97fd17
commit 5e12abaabb
5 changed files with 21 additions and 12 deletions

View File

@ -77,7 +77,7 @@ export default {
},
computed: {
...mapState(['ws', 'themeMode']),
...mapState(['ws', 'themeMode', 'supportTouch']),
isSoftware() {
return this.$Electron || this.$isEEUiApp;
@ -145,6 +145,17 @@ export default {
immediate: true
},
supportTouch: {
handler(support) {
if (support) {
$A("body").addClass("support-touch")
} else {
$A("body").removeClass("support-touch")
}
},
immediate: true
},
windowActive(active) {
if (active) {
this.__windowTimer && clearTimeout(this.__windowTimer)
@ -259,8 +270,6 @@ export default {
if (!this.$isEEUiApp) {
return;
}
// bodyClass
$A("body").addClass("eeui-app")
//
window.__onPagePause = () => {
this.$store.state.windowActive = false;

View File

@ -566,7 +566,9 @@ export default {
this.loginJump = true;
const fromUrl = decodeURIComponent($A.getObject(this.$route.query, 'from'));
if (fromUrl) {
window.location.replace(fromUrl);
$A.IDBSet("callAt", []).then(_ => {
window.location.replace(fromUrl);
})
} else {
this.goForward({name: 'manage-dashboard'}, true);
}

View File

@ -1,4 +1,7 @@
export default {
// 是否移动端(支持触摸)
supportTouch: "ontouchend" in document,
// 浏览器尺寸信息
windowWidth: $A(window).width(),
windowHeight: $A(window).height(),

View File

@ -306,7 +306,7 @@
opacity: 0;
}
body.eeui-app {
body.support-touch {
.mobile-back {
display: block;
}
@ -316,9 +316,6 @@ body.eeui-app {
.mobile-tabbar {
display: flex;
}
.mobile-back {
display: block;
}
.mobile-notification {
top: 12px;
width: 94%;

View File

@ -672,7 +672,7 @@
.mention {
color: $flow-status-end-color;
background-color: transparent;
user-select: auto;
user-select: inherit;
padding: 0;
margin: 0;
@ -1581,7 +1581,7 @@
}
}
body.eeui-app {
body.support-touch {
.dialog-wrapper {
.dialog-scroller {
user-select: none;
@ -1727,7 +1727,6 @@ body.eeui-app {
padding-right: 14px;
padding-left: 14px;
overscroll-behavior: none;
user-select: none;
background-color: #ffffff;
&.default-header {
@ -1769,7 +1768,6 @@ body.eeui-app {
a, img {
-webkit-touch-callout: default;
}
user-select: text;
}
}
}