使拉取可用仓库源列表的操作在获取当前配置成功后进行

This commit is contained in:
sunxiyuan 2020-03-20 08:02:20 +08:00
parent 882959ba69
commit c740a64bb1

View file

@ -153,14 +153,6 @@
axios.post(root_url + 'wp-admin/admin-ajax.php', data)
.then(function (response) {
vm.mirrors_form = response.data.data;
})
.catch(function (error) {
vm.$message({
message: error.response.data.message,
type: 'error'
});
});
axios.get('https://wp-china-yes.ibadboy.net')
.then(function (response) {
vm.external_api = response.data;
@ -172,6 +164,13 @@
type: 'error'
});
});
})
.catch(function (error) {
vm.$message({
message: error.response.data.message,
type: 'error'
});
});
},
submitMirrorsForm() {
let vm = this;