import { Button, FormInstance, Space } from "antd"; import { inject, observer } from "mobx-react"; import { useEffect } from "react"; import { Store } from "antd/lib/form/interface"; import SimpleForm from "@/components/form/simple_form"; import React from "react"; import { useParams } from "react-router"; const PushConfig = (props: Store) => { const { appStore } = props; const { id } = useParams(); const hwformRef = React.useRef(null); const iosformRef = React.useRef(null); const opformRef = React.useRef(null); const vivoformRef = React.useRef(null); const xmformRef = React.useRef(null); useEffect(() => { hwformRef.current?.setFieldsValue(appStore.item.pushHwawei); iosformRef.current?.setFieldsValue(appStore.item.pushIos); opformRef.current?.setFieldsValue(appStore.item.pushOppo); vivoformRef.current?.setFieldsValue(appStore.item.pushVivo); xmformRef.current?.setFieldsValue(appStore.item.pushXiaomi); }, [appStore.item, id]); const onFinishFailed = () => {}; const iosOnFinish = (values: any) => { appStore.setIosConfig(id, values); }; const xmOnFinish = (values: any) => { appStore.setXmConfig(id, values); }; const hwOnFinish = (values: any) => { appStore.setHwConfig(id, values); }; const oppoOnFinish = (values: any) => { appStore.setOPConfig(id, values); }; const vivoOnFinish = (values: any) => { appStore.setVivoConfig(id, values); }; return (

苹果推送

华为推送

oppo推送

vivo推送

小米推送

); }; export default inject("appStore")(observer(PushConfig));