Skip to content

Commit a193809

Browse files
vkarpov15Copilot
andauthored
Update frontend/src/index.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d4b80f4 commit a193809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const router = VueRouter.createRouter({
139139

140140
router.beforeEach((to, from, next) => {
141141
if (to.name === 'root' && window.state.roles && window.state.roles[0] === 'dashboards') {
142-
return next('dashboards');
142+
return next({ name: 'dashboards' });
143143
} else {
144144
next();
145145
}

0 commit comments

Comments
 (0)