|
@ -162,7 +162,7 @@ const WebsiteDnsAccount = () => { |
|
|
const [ filterForm ] = Form.useForm() |
|
|
const [ filterForm ] = Form.useForm() |
|
|
const { mutate: saveOrUpdate, isPending: isSubmitting, isSuccess } = useAtomValue(saveOrUpdateWebsiteDnsAccountAtom) |
|
|
const { mutate: saveOrUpdate, isPending: isSubmitting, isSuccess } = useAtomValue(saveOrUpdateWebsiteDnsAccountAtom) |
|
|
const [ search, setSearch ] = useAtom(websiteDnsAccountSearchAtom) |
|
|
const [ search, setSearch ] = useAtom(websiteDnsAccountSearchAtom) |
|
|
const [ currentWebsiteDnsAccount, setWebsiteDnsAccount ] = useAtom(websiteDnsAccountAtom) |
|
|
|
|
|
|
|
|
const [ setWebsiteDnsAccount ] = useAtom(websiteDnsAccountAtom) |
|
|
const { data, isFetching, isLoading, refetch } = useAtomValue(websiteDnsAccountsAtom) |
|
|
const { data, isFetching, isLoading, refetch } = useAtomValue(websiteDnsAccountsAtom) |
|
|
const { mutate: deleteWebsiteDnsAccount, isPending: isDeleting } = useAtomValue(deleteWebsiteDnsAccountAtom) |
|
|
const { mutate: deleteWebsiteDnsAccount, isPending: isDeleting } = useAtomValue(deleteWebsiteDnsAccountAtom) |
|
|
const { mutate: asyncDNS, isPending: isAsyncing } = useAtomValue(syncDNSAtom) |
|
|
const { mutate: asyncDNS, isPending: isAsyncing } = useAtomValue(syncDNSAtom) |
|
@ -265,7 +265,7 @@ const WebsiteDnsAccount = () => { |
|
|
key={'sync_confirm'} |
|
|
key={'sync_confirm'} |
|
|
disabled={isAsyncing || record.status === 2} |
|
|
disabled={isAsyncing || record.status === 2} |
|
|
onConfirm={() => { |
|
|
onConfirm={() => { |
|
|
asyncDNS(record) |
|
|
|
|
|
|
|
|
asyncDNS(record.id) |
|
|
}} |
|
|
}} |
|
|
title={t('message.syncConfirm', '您确定要同步吗?')}> |
|
|
title={t('message.syncConfirm', '您确定要同步吗?')}> |
|
|
{t('actions.sync', '同步')} |
|
|
{t('actions.sync', '同步')} |
|
@ -283,14 +283,12 @@ const WebsiteDnsAccount = () => { |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
] as ProColumns[] |
|
|
] as ProColumns[] |
|
|
}, [ isDeleting, currentWebsiteDnsAccount, search ]) |
|
|
|
|
|
|
|
|
}, [ isAsyncing, isDeleting, form, asyncDNS, deleteWebsiteDnsAccount]) |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
|
|
|
|
|
|
setSearchKey(search?.title) |
|
|
setSearchKey(search?.title) |
|
|
filterForm.setFieldsValue(search) |
|
|
filterForm.setFieldsValue(search) |
|
|
|
|
|
|
|
|
}, [ search ]) |
|
|
|
|
|
|
|
|
}, [ search]) |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
if (isSuccess) { |
|
|
if (isSuccess) { |
|
|