From 0a7ffb646fd9307f003c9d0b640a34fb7b33507c Mon Sep 17 00:00:00 2001 From: Net Date: Tue, 27 Aug 2024 16:18:56 +0700 Subject: [PATCH] refactor: add Content-Type --- src/stores/customer/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 7d13fcfd..5a816625 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -219,7 +219,7 @@ const useCustomerStore = defineStore('api-customer', () => { `/customer-branch/${opts.branchId}/attachment/${opts.filename || opts.file.name}`, opts.file, { - headers: { 'X-Rtid': flowStore.rtid }, + headers: { 'X-Rtid': flowStore.rtid, 'Content-Type': opts.file.type }, onUploadProgress: (e) => console.log(e), }, );