wjx 2 年之前
父節點
當前提交
c32917042a
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 {