首页标题设置后台标题数据

This commit is contained in:
禺狨 2023-04-25 11:33:28 +08:00
parent 8a991f3f31
commit 4db0331df5

View File

@ -12,7 +12,6 @@ import iconRoute from "../../assets/images/commen/icon-route.png";
import { studyTimeFormat } from "../../utils/index";
const IndexPage = () => {
document.title = "首页";
const systemConfig = useSelector((state: any) => state.systemConfig.value);
const [loading, setLoading] = useState<boolean>(false);
const [tabKey, setTabKey] = useState(0);
@ -36,7 +35,7 @@ const IndexPage = () => {
}, [tabKey, currentDepId]);
useEffect(() => {
document.title = systemConfig.systemName;
document.title = systemConfig.systemName || "首页";
}, [systemConfig]);
const getData = () => {