Skip to content

Commit

Permalink
fix: upload music content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Mar 26, 2021
1 parent 6f175f9 commit 9007852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/cloud/view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export const Cloud = defineComponent({
if ('error' === e.file.status) {
useMutations(CloudMutations.REMOVE_UNSHIFT_CLOUD_LIST)
}
if ('done' === e.file.status) {
useActions(CloudActions.CLOUD_LIST_ACTION)
}
}

const handlePlaySingle = (song: CloudList) => {
Expand All @@ -46,9 +49,6 @@ export const Cloud = defineComponent({
<div class="cloud-head">
<PlayAll onClick={handlePlayAll} />
<Upload
headers={{
'Content-Type': 'multipart/form-data'
}}
accept="audio/*"
name="songFile"
action="/api/cloud"
Expand Down

0 comments on commit 9007852

Please sign in to comment.