From 7afa66513629df6f3dabc34eddfb7687b3ec09bd Mon Sep 17 00:00:00 2001 From: pengda <1111@qq.com> Date: Fri, 1 Aug 2025 18:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + src/utils/login.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .env.development 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' },