We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245d3aa commit 74ec84aCopy full SHA for 74ec84a
src/router/index.js
@@ -208,11 +208,13 @@ router.beforeEach(to => {
208
BanStore.initBanNotice(localStorageAuth().data)
209
210
// Redirect to login page if route has meta.requiresAuth set
211
+ console.log(to)
212
+
213
if (to.meta.requiresAuth && !localStorageAuth().data.token) {
214
router.push({
215
name: 'Login',
216
params: {
- redirectName: to.name || 'Boards',
217
+ fullPath: to.fullPath || '/',
218
redirectParams: JSON.stringify(to.params), // Cannot pass object, gets converted to string
219
redirectQuery: JSON.stringify(to.query),
220
},
0 commit comments