Skip to content

Let's use AI to Earn!

fix: 1. 生产环境不打开开发者工具。 2. gpt4o跳转链接修改

gaoSir436ac25769c6
diff --git a/electron/main/index.ts b/electron/main/index.ts
index 38420458..601aff85 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -101,7 +101,9 @@ async function createWindow() {
if (splashWindow) {
win?.show();
// 在主窗口显示后再打开开发者工具
- win?.webContents.openDevTools({ mode: 'bottom' });
+ if (process.env.NODE_ENV === 'development') {
+ win?.webContents.openDevTools({ mode: 'bottom' });
+ }
// if (VITE_DEV_SERVER_URL) {
// win?.webContents.openDevTools({ mode: 'bottom' });
diff --git a/src/views/aiTool/index.tsx b/src/views/aiTool/index.tsx
index 4c19824b..3b0010fe 100644
--- a/src/views/aiTool/index.tsx
+++ b/src/views/aiTool/index.tsx
@@ -17,7 +17,7 @@ const items: MenuItem[] = [
icon: <Icon component={Ranking} />,
},
{
- key: `/aiTool/aiToolWebview?webviewUrl=${encodeURIComponent('https://www.yikart.cn/chat/#/new-chat?mask=100005')}`,
+ key: `/aiTool/aiToolWebview?webviewUrl=${encodeURIComponent('https://www.yikart.cn/chat?isHideNav=true&mask=100005#new-chat?mask=100005')}`,
label: 'Chat Ai绘图',
icon: <Icon component={AiDraw} />,
},