|
@@ -18,7 +18,6 @@ const ChapterTocWidget = ({ book, para, onSelect, onData }: IWidget) => {
|
|
|
const [loading, setLoading] = useState(true);
|
|
const [loading, setLoading] = useState(true);
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
let url = `/v2/chapter?view=toc&book=${book}¶=${para}`;
|
|
let url = `/v2/chapter?view=toc&book=${book}¶=${para}`;
|
|
|
-
|
|
|
|
|
setLoading(true);
|
|
setLoading(true);
|
|
|
console.info("api request", url);
|
|
console.info("api request", url);
|
|
|
get<IChapterTocListResponse>(url)
|
|
get<IChapterTocListResponse>(url)
|