mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 09:57:37 +00:00
no message
This commit is contained in:
parent
7a7d97fd17
commit
5e12abaabb
@ -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;
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
3
resources/assets/js/store/state.js
vendored
3
resources/assets/js/store/state.js
vendored
@ -1,4 +1,7 @@
|
||||
export default {
|
||||
// 是否移动端(支持触摸)
|
||||
supportTouch: "ontouchend" in document,
|
||||
|
||||
// 浏览器尺寸信息
|
||||
windowWidth: $A(window).width(),
|
||||
windowHeight: $A(window).height(),
|
||||
|
||||
5
resources/assets/sass/components/mobile.scss
vendored
5
resources/assets/sass/components/mobile.scss
vendored
@ -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%;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user