根据用户访问设备跳转不同的中心调研表登录页面
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
parent
b717530ae3
commit
4d224c115d
|
@ -55,15 +55,27 @@ router.beforeEach(async(to, from, next) => {
|
||||||
} else {
|
} else {
|
||||||
/* has no token*/
|
/* has no token*/
|
||||||
if (whiteList.indexOf(to.path) !== -1) {
|
if (whiteList.indexOf(to.path) !== -1) {
|
||||||
|
if (to.path === '/researchLogin') {
|
||||||
|
const flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
|
||||||
|
if (flag) {
|
||||||
|
next(`/researchLogin_m`)
|
||||||
|
} else {
|
||||||
|
next()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
// 在免登录whiteList中,直接进入
|
// 在免登录whiteList中,直接进入
|
||||||
if (to.path === '/readingDicoms' || to.path === '/noneDicomReading') {
|
if (to.path === '/readingDicoms' || to.path === '/noneDicomReading') {
|
||||||
OSSclient()
|
OSSclient()
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (to.path === '/researchForm') {
|
if (to.path === '/researchForm') {
|
||||||
next(`/researchLogin?`)
|
next(`/researchLogin?`)
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
|
} else if (to.path === '/researchDetail_m') {
|
||||||
|
next(`/researchLogin_m?`)
|
||||||
|
NProgress.done()
|
||||||
} else if (to.path === '/ReviewersResearchForm') {
|
} else if (to.path === '/ReviewersResearchForm') {
|
||||||
next(`/ReviewersResearch?`)
|
next(`/ReviewersResearch?`)
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
|
|
Loading…
Reference in New Issue