Skip to content

Let's use AI to Earn!

style: 类型修复

yikaJasonMic18f8a0c6c808
diff --git a/electron/plat/requestNet.ts b/electron/plat/requestNet.ts
index 8c3cc04a..d4af00c4 100644
--- a/electron/plat/requestNet.ts
+++ b/electron/plat/requestNet.ts
@@ -1,3 +1,10 @@
+/*
+ * @Author: nevin
+ * @Date: 2025-03-24 22:03:35
+ * @LastEditTime: 2025-03-24 22:12:34
+ * @LastEditors: nevin
+ * @Description:
+ */
import { net } from 'electron';
export interface IRequestNetResult<T> {
@@ -7,7 +14,7 @@ export interface IRequestNetResult<T> {
}
export interface IRequestNetParams {
- headers: Record<string, string | string[]>;
+ headers?: Record<string, string | string[]>;
url: string;
body?: any;
method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
diff --git a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/VideoPubSetModalCommon.tsx b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/VideoPubSetModalCommon.tsx
index 27fd52b3..2403b2a3 100644
--- a/src/views/publish/children/videoPage/components/VideoPubSetModal/components/VideoPubSetModalCommon.tsx
+++ b/src/views/publish/children/videoPage/components/VideoPubSetModal/components/VideoPubSetModalCommon.tsx
@@ -51,7 +51,7 @@ export const ScheduledTimeSelect = ({
currChooseAccount,
...props
}: ICommonScheduledTimeSelectProps & {
- currChooseAccount: IVideoChooseItem;
+ currChooseAccount?: IVideoChooseItem;
}) => {
const { value, onChange } = props;
const { setOnePubParams } = useVideoPageStore(