请求头新增tenant-id

main
mo 1 year ago
parent 375e46cecd
commit 6398f1be98

@ -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() {

Loading…
Cancel
Save