system.js 475B

12345678910111213141516171819202122232425
  1. import { useState } from "react";
  2. export default function useSystem() {
  3. // 主题
  4. const [theme, updateTheme] = useState('light');
  5. const [antThemeData] = useState({
  6. borderRadius: 6,
  7. colorPrimary: '#1677ff',
  8. });
  9. // 其他配置
  10. const [app, setApp] = useState({
  11. fullName: '文明创城信息管理系统',
  12. shorName: '文明城市',
  13. company: ''
  14. });
  15. return {
  16. theme,
  17. antThemeData,
  18. updateTheme,
  19. app,
  20. hashRoute: true,
  21. }
  22. }