Static GitHub Issues

[2275] Can I get the window object before default.vue mounted.

prev: 异步调用的数据,在手动刷新页面时network不会出现调用的接口,但是走路由时出现了,请问怎么去隐藏
next: ReferenceError: XMLHttpRequest is not defined

I want to window.location.href='www.xxxx.com' before project first page show, is any way can do this ?

My current way is put the window.location.href in default.vue file's mounted function, but it seems need load those app.js default.js index.js manifest.js before mounted function.

So, is some way can run my window.location.href code immediately? Thank you so much !

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1992">#c1992</a>)</em></sub></div>