简体   繁体   English

通过模态登录完成后,Nuxt Auth 出现错误

[英]Nuxt Auth gives error after login complete via modal

I am using nuxt-auth for my project in which I am using a modal for login purpose but after the login is done I get the following error我正在为我的项目使用 nuxt-auth,在该项目中我使用模态进行登录,但在登录完成后出现以下错误

I tried looking into the error in depth and found that there is a auth/auth.js file in .nuxt in which there is a function which used the this.ctx.route var which does a some() on this.ctx.route.matched but there is no .matched in this.ctx.route我试图寻找到深入的错误,发现有一个auth/auth.js文件.nuxt ,其中有其使用的功能this.ctx.route VAR其中确实some()this.ctx.route.matched但没有.matchedthis.ctx.route

Any idea what might be the issue, login works perfectly but after that I get the error.知道可能是什么问题,登录工作正常,但之后我收到错误。

My main objective is that the user should not be redirected after login from modal.我的主要目标是从模式登录后不应重定向用户。

By default Nuxt Auth will redirect you to homepage.默认情况下,Nuxt Auth 会将您重定向到主页。 You can change this behaviour by changing redirect option in Nuxt Auth from nuxt.config.js file.您可以通过从 nuxt.config.js 文件更改 Nuxt Auth 中的重定向选项来更改此行为。 https://auth.nuxtjs.org/api/options https://auth.nuxtjs.org/api/options

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM