fix functions existing and delete
This commit is contained in:
@@ -6,7 +6,7 @@ export default boot(async ({ router }) => {
|
||||
|
||||
// Restore logic after router is ready but before navigation
|
||||
router.isReady().then(() => {
|
||||
const lastRoute = sessionStorage.getItem('lastRoute');
|
||||
const lastRoute = localStorage.getItem('lastRoute');
|
||||
const currentPath = router.currentRoute.value.fullPath;
|
||||
|
||||
// Restore only if:
|
||||
@@ -26,7 +26,7 @@ export default boot(async ({ router }) => {
|
||||
router.afterEach((to) => {
|
||||
// Don't save login page as "last route"
|
||||
if (to.path !== '/login' && to.path !== '/') {
|
||||
sessionStorage.setItem('lastRoute', to.fullPath);
|
||||
localStorage.setItem('lastRoute', to.fullPath);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ onMounted(() => {
|
||||
|
||||
const forwardToPage = async () => {
|
||||
await nextTick();
|
||||
const lastRoute = sessionStorage.getItem('lastRoute') || '/members';
|
||||
const lastRoute = localStorage.getItem('lastRoute') || '/members';
|
||||
await router.push(lastRoute);
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -48,7 +48,7 @@ export function useLogin() {
|
||||
});
|
||||
|
||||
userStore.clearUser();
|
||||
sessionStorage.clear();
|
||||
localStorage.clear();
|
||||
stopRefreshInterval();
|
||||
}
|
||||
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
<q-td :props="props">
|
||||
<q-select
|
||||
v-if="responsibles.length > 0"
|
||||
:disable="!user.isPermittedTo('members', 'write')"
|
||||
:options="responsibles"
|
||||
:option-label="(opt) => opt.firstName + ' ' + opt.lastName"
|
||||
v-model="props.row.responsiblePerson"
|
||||
|
||||
Reference in New Issue
Block a user