mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
使拉取可用仓库源列表的操作在获取当前配置成功后进行
This commit is contained in:
parent
882959ba69
commit
c740a64bb1
1 changed files with 11 additions and 12 deletions
|
@ -153,6 +153,17 @@
|
||||||
axios.post(root_url + 'wp-admin/admin-ajax.php', data)
|
axios.post(root_url + 'wp-admin/admin-ajax.php', data)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
vm.mirrors_form = response.data.data;
|
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) {
|
.catch(function (error) {
|
||||||
vm.$message({
|
vm.$message({
|
||||||
|
@ -160,18 +171,6 @@
|
||||||
type: 'error'
|
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() {
|
submitMirrorsForm() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue