mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-18 05:47:34 +00:00
fix: 移动打开分享链接时先关闭聊天窗口
This commit is contained in:
parent
bbb3cee927
commit
b8ed8566ee
@ -46,6 +46,7 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -56,6 +57,9 @@ export default {
|
||||
project: {},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['dialogId','windowPortrait']),
|
||||
},
|
||||
watch: {
|
||||
'$route': {
|
||||
handler(route) {
|
||||
@ -63,9 +67,15 @@ export default {
|
||||
// 唤醒app
|
||||
if (!$A.Electron && !$A.isEEUiApp && navigator.userAgent.indexOf("MicroMessenger") === -1){
|
||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||
window.location.href = "dootask://" + route.fullPath
|
||||
try {
|
||||
window.location.href = "dootask://" + route.fullPath
|
||||
} catch (error) {}
|
||||
}
|
||||
}
|
||||
// 关闭聊天
|
||||
if (this.windowPortrait && this.dialogId > 0){
|
||||
this.$store.dispatch("openDialog", 0)
|
||||
}
|
||||
//
|
||||
this.code = route.query ? route.query.code : '';
|
||||
this.getData();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user