mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 00:22:05 +00:00
fix: No need to use process.client here
This commit is contained in:
parent
0eb928eba9
commit
be5e0571ab
@ -140,7 +140,7 @@ async function loadAsyncComponents (to, from, next) {
|
|||||||
next()
|
next()
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
err = err || {}
|
err = err || {}
|
||||||
if (/^Loading chunk (\d)+ failed\./.test(err.message) && process.client) {
|
if (/^Loading chunk (\d)+ failed\./.test(err.message)) {
|
||||||
window.location.replace(location.href)
|
window.location.replace(location.href)
|
||||||
}
|
}
|
||||||
const statusCode = (err.statusCode || err.status || (err.response && err.response.status) || 500)
|
const statusCode = (err.statusCode || err.status || (err.response && err.response.status) || 500)
|
||||||
|
Loading…
Reference in New Issue
Block a user