perf: 项目邀请页 - 安卓用opne方式打开

This commit is contained in:
weifashi 2023-11-20 09:26:10 +08:00
parent 08cc4a4815
commit 9772e4b48a

View File

@ -68,7 +68,11 @@ export default {
if (!$A.Electron && !$A.isEEUiApp && navigator.userAgent.indexOf("MicroMessenger") === -1){
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
try {
if(/Android/i.test(navigator.userAgent)){
window.open("dootask://" + route.fullPath)
}else{
window.location.href = "dootask://" + route.fullPath
}
} catch (error) {}
}
}