fixed: ts build error

This commit is contained in:
LittleBoy 2025-02-06 16:19:04 +08:00 committed by Coding
parent 2c1ea4a31a
commit 8c384d5723
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ const clearAuth = () => {
localStorage.removeItem(AppConfig.AUTH_TOKEN_KEY);
localStorage.removeItem(AppConfig.AUTHED_PERSON_DATA_KEY);
}
export const setAuthToken = (token: string | null,profileData:UserProfile|null, expiry_time = -1) => {
export const setAuthToken = (token: string | null,profileData:UserProfile|null = null, expiry_time = -1) => {
if (!token) {
clearAuth();
return;

View File

@ -156,7 +156,7 @@ export default function VideoIndex() {
ref={player}
url={state.playVideoUrl}
onChange={(state) => {
if (state.end || state.error) setState({playingIndex: -1})
if (state.end || state.error) setState({playingId: -1})
}}
onProgress={(current, duration) => {
setState({