diff --git a/src/hooks/Setting.js b/src/hooks/Setting.js index 4032949..e6ae56e 100644 --- a/src/hooks/Setting.js +++ b/src/hooks/Setting.js @@ -90,19 +90,21 @@ export function SettingProvider({ children, isSettingPage }) { ); if (isLoading) { - return ; + return isSettingPage ? : null; } if (!setting) { -
- -

数据加载出错,请刷新页面或卸载后重新安装。

-

- Data loading error, please refresh the page or uninstall and - reinstall. -

-
-
; + return isSettingPage ? ( +
+ +

数据加载出错,请刷新页面或卸载后重新安装。

+

+ Data loading error, please refresh the page or uninstall and + reinstall. +

+
+
+ ) : null; } return (