wjx 2 vuotta sitten
vanhempi
commit
c32917042a
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/pages/launchSystemNew/launchManage/createAd/index.tsx

+ 2 - 2
src/pages/launchSystemNew/launchManage/createAd/index.tsx

@@ -221,10 +221,10 @@ const CreateAd: React.FC = () => {
     // 账号对比
     useEffect(() => {
         if (getAdAccount?.data?.data && accountCreateLogs) {
-            if (accountCreateLogs.some(item => !getAdAccount?.data?.data?.find((item1: { id: number, accountId: number }) => item.id === item1.id && item.adAccountId == item1.accountId))) {
+            if (accountCreateLogs.some(item => !getAdAccount?.data?.data?.find((item1: { accountId: number }) => item.adAccountId == item1.accountId))) {
                 let errorData: any[] = []
                 let newAccountCreateLogs = accountCreateLogs.filter(item => {
-                    let data = getAdAccount?.data?.data?.find((item1: { id: number, accountId: number }) => item.id === item1.id && item.adAccountId == item1.accountId)
+                    let data = getAdAccount?.data?.data?.find((item1: { accountId: number }) => item.adAccountId == item1.accountId)
                     if (data) {
                         return true
                     } else {