mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
DesktopToolbar.vue refactoring
This commit is contained in:
2
resources/js/router.js
vendored
2
resources/js/router.js
vendored
@@ -720,6 +720,8 @@ const router = new Router({
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
|
||||
store.commit('SET_PREVIOUS_LOCATION', from.name)
|
||||
|
||||
if (to.matched.some(record => record.meta.requiresAuth)) {
|
||||
// this route requires auth, check if logged in
|
||||
// if not, redirect to login page.
|
||||
|
||||
Reference in New Issue
Block a user