تغییرات
This commit is contained in:
parent
a52cf49dc0
commit
be90244a87
|
@ -21,21 +21,21 @@ export default {
|
|||
// "app-version-code": import.meta.env.VITE_APP_VERSION,
|
||||
// };
|
||||
|
||||
this.fileUploadHttpService = new HttpService(
|
||||
import.meta.env.VITE_MESSAGE_BASE_URL,
|
||||
{
|
||||
"Content-Type": "multipart/form-data",
|
||||
}
|
||||
);
|
||||
// this.fileUploadHttpService = new HttpService(
|
||||
// import.meta.env.VITE_MESSAGE_BASE_URL,
|
||||
// {
|
||||
// "Content-Type": "multipart/form-data",
|
||||
// }
|
||||
// );
|
||||
|
||||
// this.issueHttpService = new HttpService(
|
||||
// import.meta.env.VITE_REPO_BASE_URL + "jahat/"
|
||||
// );
|
||||
|
||||
this.httpService = new HttpService(
|
||||
import.meta.env.VITE_BASE_URL
|
||||
// headers
|
||||
);
|
||||
// this.httpService = new HttpService(
|
||||
// import.meta.env.VITE_BASE_URL
|
||||
// // headers
|
||||
// );
|
||||
|
||||
// this.keyValueHttpService = new HttpService(
|
||||
// import.meta.env.VITE_KEY_VALUE_BASE_URL
|
||||
|
|
|
@ -41,9 +41,8 @@ export default {
|
|||
replyto: this.replayTo.id,
|
||||
};
|
||||
|
||||
|
||||
if (this.listGetter && this.listGetter?.is_group == 0) {
|
||||
payload.group_id = undefined
|
||||
payload.group_id = undefined;
|
||||
payload.contact_id = this.listGetter?.user;
|
||||
}
|
||||
|
||||
|
@ -189,8 +188,8 @@ export default {
|
|||
payload.file = fileItem;
|
||||
payload.length = fileItem.size;
|
||||
|
||||
this.fileUploadHttpService
|
||||
.formDataRequest(url, payload)
|
||||
this.httpService
|
||||
.formDataRequest(messageUrl() + url, payload)
|
||||
.then((res) => {
|
||||
this.replayText = null;
|
||||
this.uploadDescription = null;
|
||||
|
@ -209,8 +208,8 @@ export default {
|
|||
payload.file = this.files[0];
|
||||
payload.length = this.files[0].size;
|
||||
|
||||
return await this.fileUploadHttpService
|
||||
.formDataRequest(url, payload)
|
||||
return await this.httpService
|
||||
.formDataRequest(messageUrl() + url, payload)
|
||||
.then((res) => {
|
||||
this.closeDroppedList();
|
||||
this.replayText = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user