Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 登录修复
gaoSir0a9e94a0ae03
diff --git a/.idea/workspace.xml b/.idea/workspace.xmlindex 1f4bd2fa..4951df18 100644--- a/.idea/workspace.xml+++ b/.idea/workspace.xml@@ -6,8 +6,9 @@<component name="ChangeListManager"><list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat: password 密码登录、重置密码,添加md5加密"><change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />- <change beforePath="$PROJECT_DIR$/public/robots.txt" beforeDir="false" afterPath="$PROJECT_DIR$/public/robots.txt" afterDir="false" />- <change beforePath="$PROJECT_DIR$/public/sitemap.xml" beforeDir="false" afterPath="$PROJECT_DIR$/public/sitemap.xml" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/api/apiReq.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/apiReq.ts" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/accountCore.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/accountCore.tsx" afterDir="false" />+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx" afterDir="false" /></list><option name="SHOW_DIALOG" value="false" /><option name="HIGHLIGHT_CONFLICTS" value="true" />@@ -168,6 +169,7 @@<workItem from="1754040377625" duration="1212000" /><workItem from="1754042077113" duration="2348000" /><workItem from="1754044730693" duration="454000" />+ <workItem from="1754047243768" duration="1000000" /></task><task id="LOCAL-00001" summary="feat(CalendarTiming): 优化发布记录列表展示 - 调整日历记录项的样式和布局 - 优化 RecordCore组件,添加平台图标和时间显示 - 修改 CalendarTimingItem 组件,移除不必要的 Fragment -调整 index.tsx 中的日期格式化逻辑"><option name="closed" value="true" />diff --git a/src/api/apiReq.ts b/src/api/apiReq.tsindex 68862f87..5ad1665e 100644--- a/src/api/apiReq.ts+++ b/src/api/apiReq.ts@@ -51,7 +51,11 @@ export const getRegistUrlApi = (mail: string) => {// 检查注册状态 post!!export const checkRegistStatusApi = (data: RegistCheckParams) => {- return http.post<LoginResponse>(`login/mail/regist/back`, data);+ const hash = md5(data.password);+ return http.post<LoginResponse>(`login/mail/regist/back`, {+ ...data,+ password: hash,+ });};// 发送重置密码邮件diff --git a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsxindex 680596eb..7c7cbc9c 100644--- a/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx+++ b/src/app/[lng]/accounts/components/AccountSidebar/AccountSidebar.tsx@@ -2,6 +2,7 @@ import {ForwardedRef,forwardRef,memo,+ useEffect,useMemo,useRef,useState,@@ -24,7 +25,6 @@ import { AccountPlatInfoMap, PlatType } from "@/app/config/platConfig";import { AccountStatus } from "@/app/config/accountConfig";import { SocialAccount } from "@/api/types/account.type";import { getOssUrl } from "@/utils/oss";-import ChooseAccountModule from "@/components/ChooseAccountModule/ChooseAccountModule";import { useTransClient } from "@/app/i18n/client";export interface IAccountSidebarRef {}@@ -40,7 +40,7 @@ export interface IAccountSidebarProps {const AccountStatusView = ({ account }: { account: SocialAccount }) => {const { t } = useTransClient("account");-+if (account.status === AccountStatus.USABLE) {return (<>@@ -214,15 +214,18 @@ const AccountSidebar = memo(></Button></Tooltip></div>- {/* mcp 按钮 */}+ {/* mcp 按钮 */}<div className="accountSidebar-top-box">{/* 按钮蓝紫色渐变 */}- <Button- type="primary"- style={{background: 'linear-gradient(90deg, #625BF2 0%, #925BF2 100%)'}}+ <Button+ type="primary"+ style={{+ background:+ "linear-gradient(90deg, #625BF2 0%, #925BF2 100%)",+ }}onClick={() => setMcpManagerModalOpen(true)}>- {t("mcpManager")}+ {t("mcpManager")}</Button></div></div>