Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
过v了
bulaienaofutuojiesenzhang7435a68e1c16
diff --git a/src/components/PublishDialog/index.tsx b/src/components/PublishDialog/index.tsxindex 8c8d335f..316b7d73 100644--- a/src/components/PublishDialog/index.tsx+++ b/src/components/PublishDialog/index.tsx@@ -330,6 +330,17 @@ const PublishDialog = memo(}}, [pubListChoosed, setPubListChoosed]);+ // 过滤PC端不支持的平台账户:如被默认选中则自动移除+ useEffect(() => {+ const filtered = pubListChoosed.filter((item) => {+ const plat = AccountPlatInfoMap.get(item.account.type);+ return !(plat && plat.pcNoThis === true);+ });+ if (filtered.length !== pubListChoosed.length) {+ setPubListChoosed(filtered);+ }+ }, [pubListChoosed, setPubListChoosed]);+// 关闭弹框并确认关闭const closeDialog = useCallback(() => {confirm({@@ -552,7 +563,12 @@ const PublishDialog = memo(</div></div><div className="publishDialog-con-acconts">- {pubList.map((pubItem) => {+ {pubList+ .filter((pubItem) => {+ const plat = AccountPlatInfoMap.get(pubItem.account.type);+ return !(plat && plat.pcNoThis === true);+ })+ .map((pubItem) => {const platConfig = AccountPlatInfoMap.get(pubItem.account.type,)!;