fix: remove default new, becaule effect question
This commit is contained in:
parent
114350a2ca
commit
b4e4b55e1a
@ -18,6 +18,7 @@ export class QueryClient<U = any, V = any> extends Query<U, V> {
|
|||||||
tokenName: string;
|
tokenName: string;
|
||||||
storage: Storage;
|
storage: Storage;
|
||||||
token: string;
|
token: string;
|
||||||
|
// 默认不使用ws
|
||||||
qws: QueryWs;
|
qws: QueryWs;
|
||||||
constructor(opts?: QueryOpts & { tokenName?: string; storage?: Storage; io?: boolean }) {
|
constructor(opts?: QueryOpts & { tokenName?: string; storage?: Storage; io?: boolean }) {
|
||||||
super(opts);
|
super(opts);
|
||||||
@ -50,4 +51,5 @@ export class QueryClient<U = any, V = any> extends Query<U, V> {
|
|||||||
this.storage.removeItem(this.tokenName);
|
this.storage.removeItem(this.tokenName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export const client = new QueryClient();
|
// 移除默认生成的实例
|
||||||
|
// export const client = new QueryClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user