From 6398f1be9831cb3be1078c8fc6f01d2888520ba7 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Sat, 7 Oct 2023 13:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4=E6=96=B0=E5=A2=9Ete?= =?UTF-8?q?nant-id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/other/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() {