|
@@ -59,7 +59,7 @@ export interface IWbw {
|
|
|
para: number;
|
|
para: number;
|
|
|
sn: number[];
|
|
sn: number[];
|
|
|
word: WbwElement<string>;
|
|
word: WbwElement<string>;
|
|
|
- real?: WbwElement<string>;
|
|
|
|
|
|
|
+ real: WbwElement<string>;
|
|
|
meaning?: WbwElement<string>;
|
|
meaning?: WbwElement<string>;
|
|
|
type?: WbwElement<string>;
|
|
type?: WbwElement<string>;
|
|
|
grammar?: WbwElement<string>;
|
|
grammar?: WbwElement<string>;
|
|
@@ -85,6 +85,7 @@ export interface IWbwFields {
|
|
|
factorMeaning?: boolean;
|
|
factorMeaning?: boolean;
|
|
|
case?: boolean;
|
|
case?: boolean;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
export type TWbwDisplayMode = "block" | "inline";
|
|
export type TWbwDisplayMode = "block" | "inline";
|
|
|
interface IWidget {
|
|
interface IWidget {
|
|
|
data: IWbw;
|
|
data: IWbw;
|
|
@@ -148,6 +149,7 @@ const WbwWordWidget = ({
|
|
|
}
|
|
}
|
|
|
get<IApiResponseDictList>(`/v2/wbwlookup?word=${word}`).then((json) => {
|
|
get<IApiResponseDictList>(`/v2/wbwlookup?word=${word}`).then((json) => {
|
|
|
console.log("lookup ok", json.data.count);
|
|
console.log("lookup ok", json.data.count);
|
|
|
|
|
+ console.log("time", json.data.time);
|
|
|
//存储到redux
|
|
//存储到redux
|
|
|
store.dispatch(add(json.data.rows));
|
|
store.dispatch(add(json.data.rows));
|
|
|
});
|
|
});
|