请求头新增tenant-id

main
mo 1 year ago
parent 375e46cecd
commit 6398f1be98

@ -274,7 +274,7 @@ import {
getOtherPage, getOtherPage,
exportOtherExcel, exportOtherExcel,
} from "@/api/accounting/other"; } from "@/api/accounting/other";
import { getAccessToken } from "@/utils/auth"; import { getAccessToken, getTenantId } from "@/utils/auth";
// import {DICT_TYPE, getDictDatas} from "@/utils/dict"; // import {DICT_TYPE, getDictDatas} from "@/utils/dict";
export default { export default {
name: "Other", name: "Other",
@ -328,7 +328,10 @@ export default {
fileList: [], // fileList: [], //
uploadUrl: uploadUrl:
process.env.VUE_APP_BASE_API + "/admin-api//accounting/other/upload", // process.env.VUE_APP_BASE_API + "/admin-api//accounting/other/upload", //
headers: { Authorization: "Bearer " + getAccessToken() }, // headers: {
Authorization: "Bearer " + getAccessToken(),
"tenant-id": getTenantId(),
}, //
}; };
}, },
created() { created() {

Loading…
Cancel
Save