Skip to content

Let's use AI to Earn!

style: 1

牛文政a95952fb2a89
diff --git a/electron-vite-react-debug.gif b/electron-vite-react-debug.gif
deleted file mode 100644
index 4f879923..00000000
Binary files a/electron-vite-react-debug.gif and /dev/null differ
diff --git a/electron-vite-react.gif b/electron-vite-react.gif
deleted file mode 100644
index a4b5da57..00000000
Binary files a/electron-vite-react.gif and /dev/null differ
diff --git a/electron/main/splash.ts b/electron/main/splash.ts
index 974b342a..62833b0c 100644
--- a/electron/main/splash.ts
+++ b/electron/main/splash.ts
@@ -1,3 +1,10 @@
+/*
+ * @Author: nevin
+ * @Date: 2025-02-27 12:12:19
+ * @LastEditTime: 2025-02-27 16:38:08
+ * @LastEditors: nevin
+ * @Description:
+ */
import { BrowserWindow } from 'electron';
import path from 'node:path';
import { VITE_DEV_SERVER_URL, RENDERER_DIST } from './index';
@@ -17,18 +24,18 @@ export class SplashWindow {
// backgroundColor: '#ffffff', // 添加背景色
webPreferences: {
nodeIntegration: true,
- contextIsolation: false
- }
+ contextIsolation: false,
+ },
});
// 根据开发环境和生产环境使用不同的加载方式
- const splashPath = VITE_DEV_SERVER_URL
+ const splashPath = VITE_DEV_SERVER_URL
? path.join(process.env.VITE_PUBLIC!, 'splash.html')
: path.join(RENDERER_DIST, 'splash.html');
console.log('Splash path:', splashPath); // 调试路径
- this.window.loadFile(splashPath).catch(err => {
+ this.window.loadFile(splashPath).catch((err) => {
console.error('Failed to load splash window:', err);
});
@@ -50,4 +57,4 @@ export class SplashWindow {
this.window = null;
}
}
-}
\ No newline at end of file
+}
diff --git a/vite.config.ts b/vite.config.ts
index ac90a2d4..534d1eb0 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1,9 +1,9 @@
/*
* @Author: nevin
* @Date: 2025-01-17 19:25:29
- * @LastEditTime: 2025-02-22 20:26:05
+ * @LastEditTime: 2025-02-27 16:35:55
* @LastEditors: nevin
- * @Description:
+ * @Description:
*/
import { rmSync } from 'node:fs';
import path from 'node:path';