mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
feat: The default url of the custom upload logic follows the current deployment path (#166)
This commit is contained in:
parent
2b1fe2743a
commit
ab21e0e73f
@ -448,7 +448,7 @@ export default {
|
|||||||
const {file, util, okCb, errCb} = CUSTOM_ARG
|
const {file, util, okCb, errCb} = CUSTOM_ARG
|
||||||
const param = new FormData()
|
const param = new FormData()
|
||||||
param.append('file', file)
|
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' }
|
headers: { 'Content-Type': 'multipart/form-data' }
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
okCb(res.url)
|
okCb(res.url)
|
||||||
|
Loading…
Reference in New Issue
Block a user