Skip to content

Commit

Permalink
修复 LskyPro 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaou66 committed Sep 15, 2022
1 parent 16d920c commit eb97fac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion picturebed-vue/src/api/LskyPro.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ LskyPro.uploadImage = async (item, id) => {
}
const formData = new FormData()
formData.append('file', item)
formData.append('strategy_id', strategyId)
if (strategyId) {
formData.append('strategy_id', strategyId)
}
return await fetch(servicePath + '/api/v1/upload', {
method: 'POST',
body: formData,
Expand Down

0 comments on commit eb97fac

Please sign in to comment.