From 5b11ba410ba8d67e2b955be661773f5462a1b510 Mon Sep 17 00:00:00 2001 From: Monns <1185083880@qq.com> Date: Mon, 20 Mar 2023 20:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BF=AE=E5=A4=8Dapi?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/assets/login/login-account.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wwwroot/assets/login/login-account.js b/wwwroot/assets/login/login-account.js index a24b716..be1197e 100644 --- a/wwwroot/assets/login/login-account.js +++ b/wwwroot/assets/login/login-account.js @@ -1,4 +1,5 @@ -var $url = '/login/account'; +var $apiUrl = utils.getQueryString("apiUrl") || $formConfigApiUrl; +var $url = $apiUrl +'/login/account'; var data = utils.init({ redirectUrl: decodeURIComponent(utils.getQueryString('redirectUrl')), @@ -54,7 +55,7 @@ var methods = { var $this = this; utils.loading(this, true); - $api.post('/v1/captcha').then(function (response) { + $api.post($apiUrl +'/v1/captcha').then(function (response) { var res = response.data; $this.captchaValue = res.value; @@ -69,7 +70,7 @@ var methods = { apiCaptchaCheck: function () { var $this = this; - $api.post('/v1/captcha/actions/check', { + $api.post($apiUrl +'/v1/captcha/actions/check', { captcha: this.form.captcha, value: this.captchaValue }).then(function (res) {