diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..31c4e99 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VUE_APP_BASE_API=http://adminnew.pengda.checkcopy.com \ No newline at end of file diff --git a/src/utils/login.js b/src/utils/login.js index bd9ee97..bf5a01e 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('/api/agentnew/token_login', { token: token },{ + const res = await axios.post(process.env.VUE_APP_BASE_API+'/agentnew/token_login', { token: token },{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },