mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-07 14:35:20 +08:00
wp-content
This commit is contained in:
parent
31fe83c1ba
commit
59997961a6
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@
|
|||
},
|
||||
getConfig() {
|
||||
let vm = this;
|
||||
let root_url = window.location.href.split('wp-admin')[0];
|
||||
let root_url = window.location.href.split('wp-content')[0];
|
||||
axios.get(root_url + 'wp-content/plugins/wp-china-yes/api.php?get_config')
|
||||
.then(function (response) {
|
||||
vm.mirrors_form = response.data.data;
|
||||
|
@ -176,7 +176,7 @@
|
|||
data.append('api_server', vm.mirrors_form.api_server);
|
||||
data.append('download_server', vm.mirrors_form.download_server);
|
||||
|
||||
let root_url = window.location.href.split('wp-admin')[0];
|
||||
let root_url = window.location.href.split('wp-content')[0];
|
||||
axios.post(root_url + 'wp-content/plugins/wp-china-yes/api.php', data)
|
||||
.then(function (response) {
|
||||
vm.$message({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue