From c740a64bb1fec4d4c513604368140a637e85bf8b Mon Sep 17 00:00:00 2001 From: sunxiyuan Date: Fri, 20 Mar 2020 08:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E6=8B=89=E5=8F=96=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E6=BA=90=E5=88=97=E8=A1=A8=E7=9A=84=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=9C=A8=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=88=90=E5=8A=9F=E5=90=8E=E8=BF=9B=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/settings.html b/settings.html index 6783e7c..4ec0332 100644 --- a/settings.html +++ b/settings.html @@ -153,6 +153,17 @@ axios.post(root_url + 'wp-admin/admin-ajax.php', data) .then(function (response) { vm.mirrors_form = response.data.data; + axios.get('https://wp-china-yes.ibadboy.net') + .then(function (response) { + vm.external_api = response.data; + vm.changeServer(); + }) + .catch(function (error) { + vm.$message({ + message: error, + type: 'error' + }); + }); }) .catch(function (error) { vm.$message({ @@ -160,18 +171,6 @@ type: 'error' }); }); - - axios.get('https://wp-china-yes.ibadboy.net') - .then(function (response) { - vm.external_api = response.data; - vm.changeServer(); - }) - .catch(function (error) { - vm.$message({ - message: error, - type: 'error' - }); - }); }, submitMirrorsForm() { let vm = this;