0.1.1 исправил bug с basPath

This commit is contained in:
Дмитрий Саенко 2025-10-21 09:05:17 +03:00
parent aff23fc0ab
commit 2f033c8e01
2 changed files with 4 additions and 3 deletions

1
version Normal file
View file

@ -0,0 +1 @@
0.1.1

View file

@ -200,9 +200,9 @@
modal.show();
},
saveServer() {
let url = "{{.base_path}}panel/api/servers/add";
let url = "/panel/api/servers/add";
if (this.modal.server.id) {
url = `{{.base_path}}panel/api/servers/update/${this.modal.server.id}`;
url = `/panel/api/servers/update/${this.modal.server.id}`;
}
console.log(this.modal.server);
@ -226,7 +226,7 @@
return;
}
axios
.post(`{{.base_path}}panel/api/servers/del/${id}`)
.post(`/panel/api/servers/del/${id}`)
.then((response) => {
alert(response.data.msg);
this.loadServers();