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