【update】-请求头中增加 externalTerminalShow 参数2
This commit is contained in:
@@ -3,6 +3,7 @@ import axios from 'axios'
|
||||
import store from '@/store'
|
||||
import { Modal, notification } from 'ant-design-vue'
|
||||
import { ACCESS_TOKEN, TENANT_ID } from '@/store/mutation-types'
|
||||
import { isExternalTerminal } from '../utils/util'
|
||||
|
||||
/**
|
||||
* 【指定 axios的 baseURL】
|
||||
@@ -100,6 +101,8 @@ service.interceptors.request.use(config => {
|
||||
if (token) {
|
||||
config.headers['X-Access-Token'] = token // 让每个请求携带自定义 token 请根据实际情况自行修改
|
||||
}
|
||||
// 请求头里面放是否是外网展示的标识
|
||||
config.headers['externalTerminalShow'] = isExternalTerminal ? 'external' : 'inside'
|
||||
}
|
||||
//update-begin-author:taoyan date:2020707 for:多租户
|
||||
let tenantid = Vue.ls.get(TENANT_ID)
|
||||
|
||||
Reference in New Issue
Block a user