diff --git a/src/assets/icons/check.sign.svg b/src/assets/icons/check.sign.svg index bf14a8ec..f0cf10d3 100644 --- a/src/assets/icons/check.sign.svg +++ b/src/assets/icons/check.sign.svg @@ -1,6 +1,6 @@ - + - + diff --git a/src/common/component/ManageMembers/MemberList.tsx b/src/common/component/ManageMembers/MemberList.tsx index 776ee164..89f112d1 100644 --- a/src/common/component/ManageMembers/MemberList.tsx +++ b/src/common/component/ManageMembers/MemberList.tsx @@ -96,7 +96,7 @@ const MemberList: FC = ({ cid }) => { })} > {t("admin")} - {is_admin && } + {is_admin && }
  • = ({ cid }) => { })} > {t("user")} - {!is_admin && } + {!is_admin && }
  • } diff --git a/src/common/component/UsersModal.tsx b/src/common/component/UsersModal.tsx index d39a76b4..264bed89 100644 --- a/src/common/component/UsersModal.tsx +++ b/src/common/component/UsersModal.tsx @@ -24,9 +24,9 @@ const UsersModal: FC = ({ closeModal }) => { return ( -
    +
    - +
    {users && (
      diff --git a/src/common/component/styled/Select.tsx b/src/common/component/styled/Select.tsx index c1aa6c0b..c95b0f94 100644 --- a/src/common/component/styled/Select.tsx +++ b/src/common/component/styled/Select.tsx @@ -59,7 +59,7 @@ const Select: FC = ({ options = [], updateSelect = null, current = null } } >
      - {(current !== null ? current : curr)?.title || t("action.select")} + {(current !== null ? current : curr)?.title || t("action.select")}
      diff --git a/src/common/hook/useStreaming/index.ts b/src/common/hook/useStreaming/index.ts index a464c31d..0709a290 100644 --- a/src/common/hook/useStreaming/index.ts +++ b/src/common/hook/useStreaming/index.ts @@ -37,7 +37,6 @@ const getQueryString = (params: { [key: string]: string }) => { }; let SSE: EventSource | undefined; -// let connectionIsOpen = false; // let opened = false; //标识SSE打开过 let aliveInter: number | ReturnType = 0; export default function useStreaming() { @@ -59,7 +58,7 @@ export default function useStreaming() { console.info("debug SSE: clear prev timeout", aliveInter); aliveInter = setTimeout(() => { console.info("debug SSE: start reconnect"); - // 有网的情况再试 + // 判断有网再试 if (navigator.onLine) { console.info("debug SSE: start reconnect onLine"); // 重启连接 @@ -71,10 +70,6 @@ export default function useStreaming() { console.info("debug SSE: start new timeout", aliveInter); }; const startStreaming = useCallback(async () => { - // if (connectionIsOpen) { - // console.log("connection is open, return"); - // return; - // }; console.info("debug SSE: clear timeout at startStreaming", aliveInter); clearTimeout(aliveInter); if (SSE && (SSE.readyState === EventSource.OPEN || SSE.readyState === EventSource.CONNECTING)) { diff --git a/src/routes/reg/Register.tsx b/src/routes/reg/Register.tsx index e0bea7bb..f6c05204 100644 --- a/src/routes/reg/Register.tsx +++ b/src/routes/reg/Register.tsx @@ -33,6 +33,7 @@ export default function Register() { // const navigateTo = useNavigate(); const [input, setInput] = useState({ + name: "", email: "", password: "", confirmPassword: "" diff --git a/src/routes/setting/Overview/index.tsx b/src/routes/setting/Overview/index.tsx index cda8f301..71252773 100644 --- a/src/routes/setting/Overview/index.tsx +++ b/src/routes/setting/Overview/index.tsx @@ -29,7 +29,7 @@ export default function Overview() { const isAdmin = loginUser?.is_admin; return ( -
      +
      {isAdmin && ( <>