fix functions existing and delete
This commit is contained in:
@@ -3,8 +3,8 @@ module backend
|
|||||||
go 1.24.5
|
go 1.24.5
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.tecamino.com/paadi/access-handler v1.0.13
|
gitea.tecamino.com/paadi/access-handler v1.0.15
|
||||||
gitea.tecamino.com/paadi/memberDB v1.0.18
|
gitea.tecamino.com/paadi/memberDB v1.0.21
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1
|
||||||
gitea.tecamino.com/paadi/tecamino-logger v0.2.1
|
gitea.tecamino.com/paadi/tecamino-logger v0.2.1
|
||||||
github.com/gin-contrib/cors v1.7.6
|
github.com/gin-contrib/cors v1.7.6
|
||||||
@@ -13,7 +13,7 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
gitea.tecamino.com/paadi/dbHandler v1.0.4 // indirect
|
gitea.tecamino.com/paadi/dbHandler v1.0.8 // indirect
|
||||||
github.com/bytedance/sonic v1.14.0 // indirect
|
github.com/bytedance/sonic v1.14.0 // indirect
|
||||||
github.com/bytedance/sonic/loader v0.3.0 // indirect
|
github.com/bytedance/sonic/loader v0.3.0 // indirect
|
||||||
github.com/cloudwego/base64x v0.1.6 // indirect
|
github.com/cloudwego/base64x v0.1.6 // indirect
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
gitea.tecamino.com/paadi/access-handler v1.0.13 h1:2BqLo+cmF7ijk8XMnTdNuUKGbWPRsW6jMbk44FMCpyY=
|
gitea.tecamino.com/paadi/access-handler v1.0.15 h1:izXWf64fsyPwnqVnL5MO4oRzAtZ1XPvbgxfOt/np1dM=
|
||||||
gitea.tecamino.com/paadi/access-handler v1.0.13/go.mod h1:w71lpnuu5MgAWG3oiI9vsY2dWi4njF/iPrM/xV/dbBQ=
|
gitea.tecamino.com/paadi/access-handler v1.0.15/go.mod h1:wKsB5/Rvaj580gdg3+GbUf5V/0N00XN6cID+C/8135M=
|
||||||
gitea.tecamino.com/paadi/dbHandler v1.0.4 h1:ctnaec0GDdtw3gRQdUISVDYLJ9x+vt50VW41OemfhD4=
|
gitea.tecamino.com/paadi/dbHandler v1.0.8 h1:ZWSBM/KFtLwTv2cBqwK1mOxWAxAfL0BcWEC3kJ9JALU=
|
||||||
gitea.tecamino.com/paadi/dbHandler v1.0.4/go.mod h1:y/xn/POJg1DO++67uKvnO23lJQgh+XFQq7HZCS9Getw=
|
gitea.tecamino.com/paadi/dbHandler v1.0.8/go.mod h1:y/xn/POJg1DO++67uKvnO23lJQgh+XFQq7HZCS9Getw=
|
||||||
gitea.tecamino.com/paadi/memberDB v1.0.18 h1:S774DtR5t6jpkRfa6uHlrnvTjabHG2KSjfbMmjGkdTM=
|
gitea.tecamino.com/paadi/memberDB v1.0.21 h1:kGQe5fUOc50oQj8caWcjnmmxJaSPuQEjeSG5qDT9Iz4=
|
||||||
gitea.tecamino.com/paadi/memberDB v1.0.18/go.mod h1:iLm7nunVRzqJK8CV4PJVuWIhgPlQjNIaeOkmtfK5fMg=
|
gitea.tecamino.com/paadi/memberDB v1.0.21/go.mod h1:/Af2OeJIHq+8kE5L5DlJxhSJjB75eWBcKRpkxi+n9bU=
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1 h1:vAq7mwUxlxJuLzCQSDMrZCwo8ky5usWi9Qz+UP+WnkI=
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1 h1:vAq7mwUxlxJuLzCQSDMrZCwo8ky5usWi9Qz+UP+WnkI=
|
||||||
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1/go.mod h1:+tmf1rjPaKEoNeUcr1vdtoFIFweNG3aUGevDAl3NMBk=
|
gitea.tecamino.com/paadi/tecamino-dbm v0.1.1/go.mod h1:+tmf1rjPaKEoNeUcr1vdtoFIFweNG3aUGevDAl3NMBk=
|
||||||
gitea.tecamino.com/paadi/tecamino-logger v0.2.1 h1:sQTBKYPdzn9mmWX2JXZBtGBvNQH7cuXIwsl4TD0aMgE=
|
gitea.tecamino.com/paadi/tecamino-logger v0.2.1 h1:sQTBKYPdzn9mmWX2JXZBtGBvNQH7cuXIwsl4TD0aMgE=
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export default boot(async ({ router }) => {
|
|||||||
|
|
||||||
// Restore logic after router is ready but before navigation
|
// Restore logic after router is ready but before navigation
|
||||||
router.isReady().then(() => {
|
router.isReady().then(() => {
|
||||||
const lastRoute = sessionStorage.getItem('lastRoute');
|
const lastRoute = localStorage.getItem('lastRoute');
|
||||||
const currentPath = router.currentRoute.value.fullPath;
|
const currentPath = router.currentRoute.value.fullPath;
|
||||||
|
|
||||||
// Restore only if:
|
// Restore only if:
|
||||||
@@ -26,7 +26,7 @@ export default boot(async ({ router }) => {
|
|||||||
router.afterEach((to) => {
|
router.afterEach((to) => {
|
||||||
// Don't save login page as "last route"
|
// Don't save login page as "last route"
|
||||||
if (to.path !== '/login' && to.path !== '/') {
|
if (to.path !== '/login' && to.path !== '/') {
|
||||||
sessionStorage.setItem('lastRoute', to.fullPath);
|
localStorage.setItem('lastRoute', to.fullPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
const forwardToPage = async () => {
|
const forwardToPage = async () => {
|
||||||
await nextTick();
|
await nextTick();
|
||||||
const lastRoute = sessionStorage.getItem('lastRoute') || '/members';
|
const lastRoute = localStorage.getItem('lastRoute') || '/members';
|
||||||
await router.push(lastRoute);
|
await router.push(lastRoute);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export function useLogin() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
userStore.clearUser();
|
userStore.clearUser();
|
||||||
sessionStorage.clear();
|
localStorage.clear();
|
||||||
stopRefreshInterval();
|
stopRefreshInterval();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -116,6 +116,7 @@
|
|||||||
<q-td :props="props">
|
<q-td :props="props">
|
||||||
<q-select
|
<q-select
|
||||||
v-if="responsibles.length > 0"
|
v-if="responsibles.length > 0"
|
||||||
|
:disable="!user.isPermittedTo('members', 'write')"
|
||||||
:options="responsibles"
|
:options="responsibles"
|
||||||
:option-label="(opt) => opt.firstName + ' ' + opt.lastName"
|
:option-label="(opt) => opt.firstName + ' ' + opt.lastName"
|
||||||
v-model="props.row.responsiblePerson"
|
v-model="props.row.responsiblePerson"
|
||||||
|
|||||||
Reference in New Issue
Block a user