mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-19 16:04:42 +08:00
feat: enhance login status management and improve error logging across services
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import useAuthStore from "@/stores/authStore";
|
||||
|
||||
// region: --- Interface Definitions ---
|
||||
export interface DoubanItem {
|
||||
@@ -97,7 +96,6 @@ export class API {
|
||||
const response = await fetch(`${this.baseURL}${url}`, options);
|
||||
|
||||
if (response.status === 401) {
|
||||
useAuthStore.getState().showLoginModal();
|
||||
throw new Error("UNAUTHORIZED");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user