fix: fixed an issue with the server by adding the dependency of jwt
Some checks failed
CI / build (push) Waiting to run
Format / formatting (push) Successful in 6s
Build / build (push) Has been cancelled
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
Mohamed Maoulainine Maoulainine
2025-04-12 22:22:22 +02:00
parent 2b31753265
commit 70658e4fb9
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts" setup>
import { onMounted } from "vue";
import { onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import {jwtDecode} from "jwt-decode";
import {jwtDecode} from "jwt-decode"; // i hope this doesn't break the code later
import { store } from "../main.ts";
import { callApi } from "@/services/api.ts";
@ -13,6 +13,8 @@ type TokenPayload = {
};
};
const customRequest = ref('');
onMounted(() => {
if (store.authenticated && store.user.token) {
try {