fix: most likely fixed merge conflict

This commit is contained in:
Pierre Tellier
2025-02-18 16:55:08 +01:00
9 changed files with 237 additions and 47 deletions

View File

@ -14,7 +14,8 @@ axiosInstance.interceptors.response.use(
async (error) => {
const originalRequest = error.config;
if (
error.response.status === 401 &&
((error.response && error.response.status === 401) ||
error.code == "ERR_NETWORK") &&
!originalRequest._retry &&
store.authenticated
) {

View File

@ -1,6 +1,9 @@
<script lang="ts" setup>
import { store } from "../main.ts";
import { callApi } from "@/services/api.ts";
import { ref } from "vue";
const CustomRequest = ref("");
</script>
<template>
@ -55,6 +58,14 @@ import { callApi } from "@/services/api.ts";
<td>res</td>
<td id="3"></td>
</tr>
<tr>
<td>
<input v-model="CustomRequest" placeholder="edit me" />
</td>
<td>
<button @click="callApi(CustomRequest)">call</button>
</td>
</tr>
</tbody>
</table>
</template>