Skip to content

Let's use AI to Earn!

feat: 测试页面

yikaJasonMic9abcbfb8d156
diff --git a/electron/main/index.ts b/electron/main/index.ts
index 856f5703..9729ab0e 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -95,9 +95,11 @@ async function createWindow() {
if (splashWindow) {
win?.show();
// 在主窗口显示后再打开开发者工具
- if (VITE_DEV_SERVER_URL) {
- win?.webContents.openDevTools({ mode: 'bottom' });
- }
+ win?.webContents.openDevTools({ mode: 'bottom' });
+
+ // if (VITE_DEV_SERVER_URL) {
+ // win?.webContents.openDevTools({ mode: 'bottom' });
+ // }
setTimeout(() => {
if (splashWindow) {
splashWindow.close();
diff --git a/src/views/test/index.tsx b/src/views/test/index.tsx
index 38d65b43..446eeced 100644
--- a/src/views/test/index.tsx
+++ b/src/views/test/index.tsx
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-10 22:20:15
- * @LastEditTime: 2025-04-01 16:16:21
+ * @LastEditTime: 2025-04-01 16:33:01
* @LastEditors: nevin
* @Description: 测试页面
*/
@@ -12,6 +12,7 @@ import { PlusOutlined } from '@ant-design/icons';
export default function Text() {
const [videoPath, setVideoPath] = useState('');
+ const [fileInfo, setFileInfo] = useState('');
function addVideos(videoFiles: IVideoFile[]) {
const theVideoPath = videoFiles[0].videoPath;
@@ -23,11 +24,17 @@ export default function Text() {
'ICP_GET_FILE_MATE_INFO',
videoPath,
);
+
+ setFileInfo(JSON.stringify(res));
console.log('---- res ----', res);
}
return (
<div>
+ <p>{videoPath}</p>
+ <hr />
+ <p>{fileInfo}</p>
+ <hr />
<VideoChoose
onMultipleChoose={(videoFiles) => {
addVideos(videoFiles);