Skip to content

Commit

Permalink
🩹 他のファイル形式も指定
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Oct 30, 2024
1 parent c6ca16b commit 5b85076
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/pages/Games/Detail/Image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const handleUploadImage = (data: File | null) => {
@close="handleCancelImage"
@maskClick="handleCancelImage"
>
<UploadImageEditor :onUpload="handleUploadImage" />
<UploadImageEditor
accept=".png,.jpeg,.jpg,.gif"
:onUpload="handleUploadImage"
/>
</NModal>
<NSpace class="py-10 px-12 gap-10" vertical>
<GameImagePageHeader
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Games/Detail/Video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const handleUploadVideo = (data: File | null) => {
@close="handleCancelVideo"
@maskClick="handleCancelVideo"
>
<UploadImageEditor :onUpload="handleUploadVideo" />
<UploadImageEditor accept=".mp4" :onUpload="handleUploadVideo" />
</NModal>
<NSpace class="py-10 px-12 gap-10" vertical>
<GameVideoPageHeader
Expand Down

0 comments on commit 5b85076

Please sign in to comment.