This commit is contained in:
xiaoronghao
2023-04-18 16:44:14 +08:00
parent 4e228cadd1
commit 7b2c4584b4
3 changed files with 15 additions and 10 deletions

View File

@@ -30,6 +30,9 @@ service.interceptors.request.use(config => {
//注意使用token的时候需要引入cookie方法或者用本地localStorage等方法推荐js-cookie
// config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
// config['headers']['authorization'] = "661aiz52k5e6vqgmkxnz0wvbv8nciz8h"
if (process.env.NODE_ENV == "development") config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
return config
}, error => {
Promise.reject(error)