Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
fix: 解决数据库报错
gaoSir2bc48b5397e2
diff --git a/electron/db/models/user.ts b/electron/db/models/user.tsindex 71a1c458..be241050 100644--- a/electron/db/models/user.ts+++ b/electron/db/models/user.ts@@ -19,7 +19,7 @@ export class UserModel extends TempModel {@Column({ type: 'varchar', nullable: false, comment: '用户手机号' })phone!: string;- @Column({ type: 'varchar', nullable: false, comment: '用户微信openid' })+ @Column({ type: 'varchar', nullable: true, comment: '用户微信openid' })wxOpenId!: string;@Column({ type: 'datetime', nullable: false, comment: '登录时间' })diff --git a/electron/main/index.ts b/electron/main/index.tsindex ca5bdf25..4b1f4fee 100644--- a/electron/main/index.ts+++ b/electron/main/index.ts@@ -44,7 +44,7 @@ async function createWindow() {splashWindow.create();// 等待一会儿确保启动窗口显示- await new Promise(resolve => setTimeout(resolve, 500));+ await new Promise((resolve) => setTimeout(resolve, 500));// 创建主窗口但先不显示win = new BrowserWindow({