Skip to content

Commit

Permalink
hotfix: remove localhost:1337 to keep relative path for uploaded imag…
Browse files Browse the repository at this point in the history
…e url
  • Loading branch information
ly525 committed Dec 21, 2019
1 parent f5e1385 commit 1faf807
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
methods: {
uploadSuccess ({ file, fileList }) {
const response = file.response.length && file.response[0]
this.items = [{ name: response.name, previewURL: response.url }, ...this.cachedItems]
this.items = [{ name: response.name, previewURL: response.url.replace('http://localhost:1337', '') }, ...this.cachedItems]
},
beforeUpload (file) {
this.items.unshift({
Expand Down

0 comments on commit 1faf807

Please sign in to comment.