diff --git a/src/views/accounting/other/index.vue b/src/views/accounting/other/index.vue index 937dfb0a..cbfe7228 100644 --- a/src/views/accounting/other/index.vue +++ b/src/views/accounting/other/index.vue @@ -274,7 +274,7 @@ import { getOtherPage, exportOtherExcel, } from "@/api/accounting/other"; -import { getAccessToken } from "@/utils/auth"; +import { getAccessToken, getTenantId } from "@/utils/auth"; // import {DICT_TYPE, getDictDatas} from "@/utils/dict"; export default { name: "Other", @@ -328,7 +328,10 @@ export default { fileList: [], // 文件列表 uploadUrl: process.env.VUE_APP_BASE_API + "/admin-api//accounting/other/upload", // 上传地址地址 - headers: { Authorization: "Bearer " + getAccessToken() }, // 设置上传的请求头 + headers: { + Authorization: "Bearer " + getAccessToken(), + "tenant-id": getTenantId(), + }, // 设置上传的请求头 }; }, created() {