add new landing page firstlogin close #18

This commit is contained in:
Adrian Zürcher
2025-12-10 14:05:37 +01:00
parent 714ca0219a
commit 6be85e86af
14 changed files with 119 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ export default boot(async ({ router }) => {
// load user
try {
const { data } = await appApi.get('/login/me');
userStore.setFirstLogin(data.newDatabase);
data.role.role = data.role;
await userStore.setUser(data);
@@ -36,7 +37,7 @@ export default boot(async ({ router }) => {
// Save the route after every successful navigation
router.afterEach((to) => {
// Don't save login page as "last route"
if (to.path !== '/login' && to.path !== '/') {
if (to.path !== '/login' && to.path !== '/firstlogin' && to.path !== '/') {
setLocalLastRoute(to.fullPath);
}
});