mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
chore: 移除启动时自动检测认证并跳转设置页的逻辑
This commit is contained in:
parent
5fdf50436c
commit
5016bc0049
@ -27,18 +27,6 @@ export function AppShell() {
|
||||
await initializeDesktopServerUrl()
|
||||
await fetchSettings()
|
||||
|
||||
// Check auth status: if no auth at all, redirect to provider setup
|
||||
try {
|
||||
const authStatus = await providersApi.authStatus()
|
||||
if (!authStatus.hasAuth) {
|
||||
// No auth — open Settings on the providers tab
|
||||
useUIStore.getState().setPendingSettingsTab('providers')
|
||||
useTabStore.getState().openTab(SETTINGS_TAB_ID, 'Settings', 'settings')
|
||||
}
|
||||
} catch {
|
||||
// auth-status check failed — continue normally
|
||||
}
|
||||
|
||||
// Restore tabs from localStorage
|
||||
await useTabStore.getState().restoreTabs()
|
||||
const activeId = useTabStore.getState().activeTabId
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user