feat: 增加租户ID自定义配置支持

This commit is contained in:
downeyin
2024-07-26 00:11:07 +08:00
parent 3d7f63868f
commit 20f937a4ed
4 changed files with 14 additions and 8 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { baseUrl, apiPath } from '@/sheep/config';
import { baseUrl, apiPath, tenantId } from '@/sheep/config';
const FileApi = {
// 上传文件
@@ -15,8 +15,8 @@ const FileApi = {
name: 'file',
header: {
// Accept: 'text/json',
Accept : '*/*',
'tenant-id' :'1',
Accept: '*/*',
'tenant-id': tenantId,
// Authorization: 'Bearer test247',
},
success: (uploadFileRes) => {