新增订单开票
This commit is contained in:
@@ -15,12 +15,12 @@ const service = axios.create({
|
||||
// 请求拦截器
|
||||
service.interceptors.request.use(
|
||||
(config) => {
|
||||
// // 在发送请求之前做些什么 token
|
||||
// if (useStorage.get("douyin") && useStorage.get("douyin").token) {
|
||||
// config.headers["bausertoken"] = useStorage.get("douyin").token;
|
||||
// // config.headers['Content-Type'] = 'application/json'
|
||||
// }
|
||||
// 在发送请求之前做些什么 token
|
||||
config.headers["pctoken"] = useStorage.get("token");
|
||||
config.headers["ispc"] = 1;
|
||||
config.headers["loginName"] = useStorage.get("userInfo").loginName;
|
||||
config.headers["clientType"] = "pc";
|
||||
config.headers["shopId"] = useStorage.get("userInfo").shopId;
|
||||
return config;
|
||||
},
|
||||
(error) => {
|
||||
|
||||
Reference in New Issue
Block a user