Commit 6b319cc5 authored by 郭志伟's avatar 郭志伟

Merge branch 'feature/tenant' into 'master'

add tenantId

See merge request !1
parents 4e3ba6a0 49b4947e
......@@ -92,6 +92,7 @@ instance.interceptors.request.use(
beforeRequest(config.headers._loading, config.headers._isLoading);
const token = localStorage.get('token');
const user = localStorage.get('user');
const tenantId =localStorage.get('tenantId');
if (user) {
config.headers['Account'] = user.account;
config.headers['Account-Name'] = encodeURI(user.name);
......@@ -101,6 +102,9 @@ instance.interceptors.request.use(
config.headers['Access-Token'] = token;
config.headers['X-Requested-With'] = 'XMLHttpRequest';
}
if(tenantId){
config.headers['qg-tenant-id'] = tenantId;
}
let rewriteMap = {};
......
{
"name": "@qg/sys-sdk",
"version": "1.0.14",
"version": "1.0.16",
"description": "",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment