新增页面

This commit is contained in:
2026-09-09 22:34:32 +08:00
parent c9dce2c828
commit fe47a38a13
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const request = axios.create({
request.interceptors.request.use(
(config) => {
// 在请求头中添加token
const token = store.state.token;
const token = localStorage.getItem('token');
if (token) {
config.headers['Authorization'] = `${token}`;
}