mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
perf: 项目邀请页 - 安卓用opne方式打开
This commit is contained in:
parent
08cc4a4815
commit
9772e4b48a
@ -68,7 +68,11 @@ export default {
|
|||||||
if (!$A.Electron && !$A.isEEUiApp && navigator.userAgent.indexOf("MicroMessenger") === -1){
|
if (!$A.Electron && !$A.isEEUiApp && navigator.userAgent.indexOf("MicroMessenger") === -1){
|
||||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
||||||
try {
|
try {
|
||||||
window.location.href = "dootask://" + route.fullPath
|
if(/Android/i.test(navigator.userAgent)){
|
||||||
|
window.open("dootask://" + route.fullPath)
|
||||||
|
}else{
|
||||||
|
window.location.href = "dootask://" + route.fullPath
|
||||||
|
}
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user