我使用的是vue-js和vue-auth的最新版本,其文档可以在here中找到
默认情况下,如果auth为true并且用户未登录,则vue-auth会将用户重定向到/login。
因此,如果我输入http://example.com/mycomponent,我将被重定向到/login。
问题
登录后,我被重定向至/
问题
在被记录后我能做什么一个被重定向到他的初始请求?
如果我输入/mycomponent,我希望在登录后被重定向到/mycomponent
路线
{
path: '/mycomponent',
name: 'mycomponent',
component: mycomponent,
meta: { auth: true }
}https://stackoverflow.com/questions/47582679
复制相似问题