@bbki.ng/site 1.8.6 → 1.8.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 +4 -0
- package/package.json +1 -1
- package/src/blog/components/Img_ctx_menu/index.tsx +1 -1
- package/src/blog/components/app_ctx_menu/LoginMenuItem.tsx +1 -1
- package/src/blog/components/article_ctx_menu/index.tsx +1 -1
- package/src/blog/components/reload_prompt/index.tsx +2 -2
- package/src/blog/demo/PluginDemo.ts +1 -1
- package/src/blog/hooks/use_font_loading.ts +4 -0
- package/src/blog/utils/index.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ export const ReloadPrompt = () => {
|
|
|
26
26
|
toast("", {
|
|
27
27
|
description: "发现新版本,是否更新?",
|
|
28
28
|
duration: 10000,
|
|
29
|
-
position: "
|
|
29
|
+
position: "bottom-right",
|
|
30
30
|
actionButtonStyle: {
|
|
31
31
|
backgroundColor: "#fff",
|
|
32
32
|
color: "rgb(37,99,235)",
|
|
@@ -38,7 +38,7 @@ export const ReloadPrompt = () => {
|
|
|
38
38
|
// @ts-ignore
|
|
39
39
|
toast("", {
|
|
40
40
|
description: `已更新`,
|
|
41
|
-
position: "
|
|
41
|
+
position: "bottom-right",
|
|
42
42
|
});
|
|
43
43
|
setNeedRefresh(false);
|
|
44
44
|
});
|
|
@@ -27,6 +27,10 @@ export const useFontLoading = () => {
|
|
|
27
27
|
document.fonts.onloadingerror = handleFontLoadingError;
|
|
28
28
|
document.fonts.onloading = handleFontLoading;
|
|
29
29
|
|
|
30
|
+
document.fonts.ready.then(() => {
|
|
31
|
+
handleFontLoadingDone();
|
|
32
|
+
});
|
|
33
|
+
|
|
30
34
|
return () => {
|
|
31
35
|
document.fonts.onloadingerror = null;
|
|
32
36
|
document.fonts.onloading = null;
|
package/src/blog/utils/index.ts
CHANGED