update:
fix headers
This commit is contained in:
@@ -158,8 +158,7 @@ export default {
|
||||
formData.append('store', store || '');
|
||||
this.files.forEach((file) => formData.append('files', file, file.name));
|
||||
|
||||
const cleanBase = (baseUrl || '').replace(/\/+$/, '');
|
||||
const endpoint = `${cleanBase}/kiosk-upload/upload`;
|
||||
const endpoint = `https://bmapi.tttzai.com/kiosk-upload/upload`;
|
||||
const headers = {
|
||||
'tenant-id': '000000'
|
||||
// 注意:不要手动设置 'Content-Type',因为使用 FormData 时浏览器会自动设置正确的 boundary
|
||||
|
||||
Reference in New Issue
Block a user