Browse Source

fix: 发送截图的bug

master
xsx 3 months ago
parent
commit
e7f37629e7
  1. 2
      im-web/src/components/chat/ChatBox.vue

2
im-web/src/components/chat/ChatBox.vue

@ -445,7 +445,7 @@ export default {
this.onImageBefore(file); this.onImageBefore(file);
let formData = new FormData() let formData = new FormData()
formData.append('file', file) formData.append('file', file)
this.$http.post("/image/upload", formData, { this.$http.post("/image/upload?isPermanent=false", formData, {
headers: { headers: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'
} }

Loading…
Cancel
Save