3 Commits

Author SHA1 Message Date
litecn
619901ef69 Bump version from 1.3.12 to 1.3.13 2026-02-05 11:04:58 +08:00
litecn
8523e5f157 Merge pull request #266 from litecn/cokvr
fix: set login state and show login modal on authentication failure
2026-02-05 10:38:47 +08:00
James Chen
29ad5a5e75 fix: set login state and show login modal on authentication failure 2026-02-05 10:32:05 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
"name": "OrionTV",
"private": true,
"main": "expo-router/entry",
"version": "1.3.12",
"version": "1.3.13",
"scripts": {
"start": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start",
"android": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:android",

View File

@@ -254,6 +254,7 @@ const useHomeStore = create<HomeState>((set, get) => ({
errorMessage = "请点击右上角设置按钮,配置您的服务器地址";
} else if (err.message === "UNAUTHORIZED") {
errorMessage = "认证失败,请重新登录";
useAuthStore.setState({ isLoggedIn: false, isLoginModalVisible: true });
} else if (err.message.includes("Network")) {
errorMessage = "网络连接失败,请检查网络连接";
} else if (err.message.includes("timeout")) {