aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/services')
-rw-r--r--FrontEnd/src/services/user.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/FrontEnd/src/services/user.ts b/FrontEnd/src/services/user.ts
index 2f42dd59..bc33d113 100644
--- a/FrontEnd/src/services/user.ts
+++ b/FrontEnd/src/services/user.ts
@@ -1,5 +1,6 @@
import { useState, useEffect } from "react";
import { BehaviorSubject, Observable } from "rxjs";
+import { AxiosError } from "axios";
import { UiLogicError } from "@/common";
@@ -11,7 +12,6 @@ import {
import { getHttpUserClient, HttpUser, UserPermission } from "@/http/user";
import { pushAlert } from "./alert";
-import { AxiosError } from "axios";
interface IAuthUser extends HttpUser {
token: string;
@@ -67,6 +67,8 @@ export class UserService {
type: "danger",
message: "user.tokenInvalid",
});
+ } else {
+ throw e;
}
});