Commit 1faf80790a8e19447d29b9712e6998158254db63

Authored by ly525
1 parent f5e13851

hotfix: remove localhost:1337 to keep relative path for uploaded image url

front-end/h5/src/components/core/support/image-gallery/tabs/personal.js
... ... @@ -11,7 +11,7 @@ export default {
11 11 methods: {
12 12 uploadSuccess ({ file, fileList }) {
13 13 const response = file.response.length && file.response[0]
14   - this.items = [{ name: response.name, previewURL: response.url }, ...this.cachedItems]
  14 + this.items = [{ name: response.name, previewURL: response.url.replace('http://localhost:1337', '') }, ...this.cachedItems]
15 15 },
16 16 beforeUpload (file) {
17 17 this.items.unshift({
... ...