Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
feat: 【账号】异常状态颜色更改
gaoSircf5878d56491
diff --git a/src/layout/BellMessage/index.tsx b/src/layout/BellMessage/index.tsxindex 31d8a123..3fbfb88b 100644--- a/src/layout/BellMessage/index.tsx+++ b/src/layout/BellMessage/index.tsx@@ -6,7 +6,6 @@ import { NoticeType, useBellMessageStroe } from '../../store/bellMessageStroe';import { PubRecordStatusTag } from '../../views/publish/children/pubRecord/page';import { formatTime } from '../../utils';import PubProgressModule from '../../views/publish/components/PubProgressModule/PubProgressModule';-import { PublishProgressRes } from '../../../electron/main/plat/pub/PubItemVideo';export interface IBellmessageRef {}diff --git a/src/layout/Navigation/index.tsx b/src/layout/Navigation/index.tsxindex 472acfd1..fe31e77f 100644--- a/src/layout/Navigation/index.tsx+++ b/src/layout/Navigation/index.tsx@@ -81,7 +81,11 @@ const Navigation = () => {}}><div className="navigation-icon">- <img src={treeSvg} alt="小树苗" style={{ width: 20, height: 20, verticalAlign: 'middle' }} />+ <img+ src={treeSvg}+ alt="小树苗"+ style={{ width: 20, height: 20, verticalAlign: 'middle' }}+ /><span className="navigation-icon-text">小树苗</span></div></Popover>@@ -93,7 +97,7 @@ const Navigation = () => {<span className="navigation-icon-text">消息</span></div></Bellmessage>-+<div className="navigation-line"></div><SysMenu /><div className="navigation-line"></div>diff --git a/src/views/account/components/AccountSidebar/AccountSidebar.module.scss b/src/views/account/components/AccountSidebar/AccountSidebar.module.scssindex 4425df08..7aba7391 100644--- a/src/views/account/components/AccountSidebar/AccountSidebar.module.scss+++ b/src/views/account/components/AccountSidebar/AccountSidebar.module.scss@@ -104,9 +104,13 @@background: var(--colorPrimary1);}+ &--abnormal {+ color: red !important;+ }+&--disable {- filter: grayscale(100%);- opacity: 0.5;+ filter: grayscale(100%) !important;+ opacity: 0.5 !important;}}}diff --git a/src/views/account/components/AccountSidebar/AccountSidebar.tsx b/src/views/account/components/AccountSidebar/AccountSidebar.tsxindex 0f8df389..1fb4d940 100644--- a/src/views/account/components/AccountSidebar/AccountSidebar.tsx+++ b/src/views/account/components/AccountSidebar/AccountSidebar.tsx@@ -259,11 +259,13 @@ const AccountSidebar = memo('accountList-item',`${activeAccountId === account.id ? 'accountList-item--active' : ''}`,// 失效状态- (account.status === AccountStatus.DISABLE ||- (account.abnormalStatus &&- account.abnormalStatus[AccountType.Xhs] ===- XhsAccountAbnormal.Abnormal)) &&+ account.status === AccountStatus.DISABLE &&'accountList-item--disable',+ // 异常状态+ account.abnormalStatus &&+ account.abnormalStatus[AccountType.Xhs] ===+ XhsAccountAbnormal.Abnormal &&+ 'accountList-item--abnormal',].join(' ')}key={account.id}onClick={async () => {@@ -282,7 +284,17 @@ const AccountSidebar = memo(className="accountList-item-right-name"title={account.nickname}>- {account.nickname}+ <Tooltip+ title={+ account.abnormalStatus &&+ account.abnormalStatus[AccountType.Xhs] ===+ XhsAccountAbnormal.Abnormal+ ? '账号状态异常,无法发布作品,请检查后重试'+ : undefined+ }+ >+ {account.nickname}+ </Tooltip></div><div className="accountList-item-right-footer"><p className="accountList-item-right-plat">