mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 18:56:01 +08:00
详情页加载优化
This commit is contained in:
parent
5ce52c520a
commit
2bd10f5a6f
@ -87,6 +87,8 @@ export const HourCompenent: React.FC<PropInterface> = ({
|
|||||||
<div
|
<div
|
||||||
className={styles["item"]}
|
className={styles["item"]}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
setCurrentId(id);
|
||||||
|
setCurrentTitle(title);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -148,6 +148,7 @@ export const VideoModel: React.FC<PropInterface> = ({
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
window.player && window.player.destroy();
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setLastSeeValue({});
|
setLastSeeValue({});
|
||||||
setPlayendedStatus(false);
|
setPlayendedStatus(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user