mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-08 06:56:08 +08:00
add root_url
This commit is contained in:
parent
d526dd8f46
commit
31fe83c1ba
1 changed files with 6 additions and 5 deletions
|
@ -130,8 +130,8 @@
|
|||
},
|
||||
getConfig() {
|
||||
let vm = this;
|
||||
|
||||
axios.get('/wp-content/plugins/wp-china-yes/api.php?get_config')
|
||||
let root_url = window.location.href.split('wp-admin')[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,8 @@
|
|||
data.append('api_server', vm.mirrors_form.api_server);
|
||||
data.append('download_server', vm.mirrors_form.download_server);
|
||||
|
||||
axios.post('/wp-content/plugins/wp-china-yes/api.php', data)
|
||||
let root_url = window.location.href.split('wp-admin')[0];
|
||||
axios.post(root_url + 'wp-content/plugins/wp-china-yes/api.php', data)
|
||||
.then(function (response) {
|
||||
vm.$message({
|
||||
message: '保存成功',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue