Skip to content

Commit

Permalink
feat: The default url of the custom upload logic follows the current …
Browse files Browse the repository at this point in the history
…deployment path (doocs#166)
  • Loading branch information
wll8 authored Aug 3, 2022
1 parent 2b1fe27 commit ab21e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CodemirrorEditor/uploadImgDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export default {
const {file, util, okCb, errCb} = CUSTOM_ARG
const param = new FormData()
param.append('file', file)
util.axios.post('http://127.0.0.1:9000/upload', param, {
util.axios.post('${window.location.origin}/upload', param, {
headers: { 'Content-Type': 'multipart/form-data' }
}).then(res => {
okCb(res.url)
Expand Down

0 comments on commit ab21e0e

Please sign in to comment.