mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
no message
This commit is contained in:
parent
7a7d97fd17
commit
5e12abaabb
@ -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;
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
3
resources/assets/js/store/state.js
vendored
3
resources/assets/js/store/state.js
vendored
@ -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(),
|
||||||
|
|||||||
5
resources/assets/sass/components/mobile.scss
vendored
5
resources/assets/sass/components/mobile.scss
vendored
@ -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%;
|
||||||
|
|||||||
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user