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;