commit | 6f2ed698153c4e0286bb6b5f8fe010e5c89f6431 | [log] [tgz] |
---|---|---|
author | San3yuan <1071987081@qq.com> | Wed Apr 16 20:24:49 2025 +0800 |
committer | San3yuan <1071987081@qq.com> | Wed Apr 16 20:24:49 2025 +0800 |
tree | 2a28405783e1be9c07b898603f24b0d6a9d15b56 | |
parent | 2534d42fa2c21e551d59a4470fe0870c94e3f00c [diff] [blame] |
添加测试配置及登陆部分的测试 Change-Id: I6fa1fe23ad8773548927fdc921dceab841f2368a
diff --git a/src/utils/axios.ts b/src/utils/axios.ts index c7639b0..1eaad87 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts
@@ -13,7 +13,7 @@ instance.interceptors.request.use( (config) => { // 添加认证 token - const token = localStorage.getItem('access_token') + const token = localStorage.getItem('token') if (token) { config.headers.Authorization = `Bearer ${token}` }