release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
3 changed files with 17 additions and 12 deletions
Showing only changes of commit 5a4f6939d1 - Show all commits

View File

@ -170,12 +170,11 @@ export default defineComponent({
});
function logout() {
console.log('vor dem logout');
ctx.root.$store.dispatch(
'user/logout',
ctx.root.$store.getters['user/session'].token
);
console.log('nach dem logout');
ctx.root.$store
.dispatch('user/logout', ctx.root.$store.getters['user/session'].token)
.catch(error => {
console.warn(error);
});
}
return {

View File

@ -47,9 +47,13 @@ export default defineComponent({
function doLogin() {
console.log(userid.value, password.value);
ctx.root.$store.dispatch('user/login', {
ctx.root.$store
.dispatch('user/login', {
userid: userid.value,
password: password.value
})
.catch(error => {
console.warn(error);
});
//ctx.root.$router.push({ name: 'main' });
}

View File

@ -37,7 +37,7 @@
</template>
<script lang="ts">
import { computed, defineComponent } from '@vue/composition-api';
import { defineComponent } from '@vue/composition-api';
export default defineComponent({
name: 'Sessions',
props: {
@ -66,7 +66,9 @@ export default defineComponent({
}
function deleteSession(token: string) {
root.$store.dispatch('sessions/deleteSession', token);
root.$store.dispatch('sessions/deleteSession', token).catch(error => {
console.warn(error);
});
}
function isThisSession(token: string) {
return root.$store.getters['user/session'].token == token;