fix(web): 清理测试运行警告

This commit is contained in:
tbphp committed 2026-07-29 17:52:31 +08:00
1 parent 06f4633560
commit cd5f8558aa
6 files changed
+18 -7

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import type { ApiClient } from './client'
export const apiClientKey: InjectionKey<ApiClient> = Symbol('api-client')
export function useApiClient(): ApiClient {
const client = inject(apiClientKey)
const client = inject(apiClientKey, null)
if (!client) throw new Error('API_CLIENT_NOT_PROVIDED')
return client
}