mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +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 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)
|
||||
|
Loading…
Reference in New Issue
Block a user