@bbki.ng/site 5.4.7 → 5.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/blog/pages/streaming/index.tsx +12 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -24,6 +24,18 @@ const Streaming = () => {
|
|
|
24
24
|
const { streaming, isLoading, isError } = useStreaming();
|
|
25
25
|
const bbMsgHistoryRef = useRef<BbMsgHistoryElement>(null);
|
|
26
26
|
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const $blog = document.querySelector("#blog") as HTMLDivElement | null;
|
|
29
|
+
if (!$blog) return;
|
|
30
|
+
|
|
31
|
+
// disable scroll
|
|
32
|
+
$blog.style.overflow = "hidden";
|
|
33
|
+
|
|
34
|
+
return () => {
|
|
35
|
+
$blog.style.overflow = "auto";
|
|
36
|
+
}
|
|
37
|
+
}, [])
|
|
38
|
+
|
|
27
39
|
if (isError) {
|
|
28
40
|
return <div className="p-8 text-center text-gray-500">加载失败</div>;
|
|
29
41
|
}
|