Skip to content

Commit

Permalink
fix: post error: image not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Sep 17, 2024
1 parent 85df991 commit 73e3889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/pages/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ export default {
// 将images中的baseurl去掉
this.post.images = this.post.images.map(image => {
return image.replace(this.$store.state.base_url + "/v1/post/download-image/?preview=1", '')
return image.replace(this.$store.state.base_url + "/v1/post/download-image/", '')
.replace("?preview=1", "")
})
this.$axios.post('/v1/post/post-new', this.post)
Expand Down

0 comments on commit 73e3889

Please sign in to comment.