详情页服务器请求加缓存
This commit is contained in:
@@ -10,7 +10,7 @@ axios.defaults.withCredentials = true
|
||||
axios.interceptors.request.use( //响应拦截
|
||||
async config => {
|
||||
// 开发时登录用的,可以直接替换小程序的 authorization
|
||||
config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "2434e9674f3ba0afa6da5c9253422151"
|
||||
config['headers']['authorization'] = process.env.NODE_ENV !== "production" && "00c02fd989cc0bf31944462f6ba1067f"
|
||||
return config;
|
||||
},
|
||||
error => {
|
||||
|
||||
Reference in New Issue
Block a user