Home

Issue: 1083

Ie compatible local can, generate package after the line can not

[issue link]

middleware/auth:

let loggedIE = false // 是否是低版本的浏览器
if (process.BROWSER_BUILD) {
loggedIE = browserType(window.navigator.userAgent)
console.log(window.navigator.userAgent)
} else {
if (!req) return
loggedIE = browserType(req.headers[‘user-agent’])
console.log(req.headers[‘user-agent’])
}
if (loggedIE) {
return redirect(’/below-ie8’)
}

This question is available on Nuxt.js community (#c951)