Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 1
牛文政cdd19ab31c11
diff --git a/electron/db/index.ts b/electron/db/index.tsindex 41a23151..3269a00c 100644--- a/electron/db/index.ts+++ b/electron/db/index.ts@@ -21,6 +21,7 @@ import { logger } from '../global/log';import { AutoRunModel } from './models/autoRun';import { AutoRunRecordModel } from './models/autoRunRecord';import { ImgTextModel } from './models/imgText';+import { ReplyCommentRecordModel } from './models/replyCommentRecord';const configPath = app.getPath('userData');const database = path.join(configPath, 'database.sqlite');@@ -41,6 +42,7 @@ export const AppDataSource = new DataSource({AutoRunModel,AutoRunRecordModel,ImgTextModel,+ ReplyCommentRecordModel,], // 实体或模型表migrations: Object.values(migrations), // 迁移类migrationsRun: true, // 确保在连接时自动运行迁移diff --git a/src/views/reply/autoRun.tsx b/src/views/reply/autoRun.tsxindex 28d49e10..93b45aaa 100644--- a/src/views/reply/autoRun.tsx+++ b/src/views/reply/autoRun.tsx@@ -59,6 +59,7 @@ const Page: React.FC = () => {return (<div style={{ width: '100%' }} className="bg-slate-500"><Table+ rowKey="id"dataSource={autoRunList}style={{ width: '100%' }}className="bg-slate-500"diff --git a/src/views/reply/components/oneKeyReply.tsx b/src/views/reply/components/oneKeyReply.tsxindex 47f76e0d..36c69d78 100644--- a/src/views/reply/components/oneKeyReply.tsx+++ b/src/views/reply/components/oneKeyReply.tsx@@ -61,7 +61,7 @@ const Com = forwardRef<OneKeyReplyRef>((props: any, ref) => {setInfoText('评论结束');break;case AutorReplyCommentScheduleEvent.Error:- setErrorText(args.error);+ setErrorText(args.error?.message || '未知错误');break;default:const tagStr =