diff --git a/src/utils/login.js b/src/utils/login.js index 0e6fe0b..d8eab1c 100644 --- a/src/utils/login.js +++ b/src/utils/login.js @@ -8,7 +8,7 @@ export async function autoLoginByToken() { if (token) { try { - const res = await axios.post('/agentnew/token_login', { token: token },{ + const res = await axios.post('/api/agentnew/token_login', { token: token },{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },