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

View File

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

View File

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

View File

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

View File

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