|
@@ -31,10 +31,10 @@ function Targeting(props: { adAccountId: any, userId: string, accountId: any, ta
|
|
|
}, [listAjax, userId])
|
|
|
// 同步
|
|
|
const sync = useCallback(() => {
|
|
|
- if (selectedRows?.length === 0) {
|
|
|
- message.error('请先勾选要同步的广点通账号!')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (selectedRows?.length === 0) {
|
|
|
+ // message.error('请先勾选要同步的广点通账号!')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
let arr = [...new Set(selectedRows?.map(item=>item.accountId))]
|
|
|
syncAjax.run({ accountIdList:arr }).then(res => {
|
|
|
res && listAjax.refresh()
|