fix: token过期自动跳转登录页

- dio_client.dart: 401错误时触发onUnauthorized回调
- main.dart: 连接回调到AuthProvider.forceLogout
- 完整链路: 401 -> 清除token -> 强制登出 -> 显示LoginPage
This commit is contained in:
2026-04-01 11:26:07 +08:00
parent ed98db66cf
commit 3f4d2d8b9a
5 changed files with 8407 additions and 8374 deletions

View File

@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"e4b8dca3f1b4ede4c30371002441c88c12187e
_flutter.loader.load({
serviceWorkerSettings: {
serviceWorkerVersion: "2359170310" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
serviceWorkerVersion: "806880865" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
}
});