Skip to content

Commit

Permalink
chore:视频加载失败提示
Browse files Browse the repository at this point in the history
  • Loading branch information
GiantappMan committed Feb 6, 2024
1 parent ad214ac commit 6fe2aa0
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export function WallpaperDialog(props: WallpaperDialogProps) {
setImportedFile(undefined);
abortController?.abort();
} else {
setLoadVideoError(false);
const isPlaylist = WallpaperMeta.isPlaylist(props.wallpaper?.meta);
if (props.wallpaper) {
if (!isPlaylist) {
Expand Down Expand Up @@ -541,16 +542,7 @@ export function WallpaperDialog(props: WallpaperDialogProps) {
</video>
}
{
loadVideoError &&
<button onClick={() => {
// setLoadVideoError(false);
// setImportedFile({
// ...importedFile,
// url: importedFile.url + "?t=" + Date.now()
// })
}}>
加载视频失败,请重试
</button>
loadVideoError && <>加载视频失败,请重试</>
}
{
importedFile.fileType === "img" &&
Expand Down

0 comments on commit 6fe2aa0

Please sign in to comment.