no message

This commit is contained in:
Alexander Kraev 2025-07-22 14:10:56 +03:00
parent a8f378c260
commit e37714f343

View file

@ -73,14 +73,14 @@
return key; return key;
}, },
fetchDomains() { fetchDomains() {
axios.get('blocked-domains/').then(res => { axios.get(basePath + 'blocked-domains/').then(res => {
if (res.data.success) { if (res.data.success) {
this.domains = res.data.obj; this.domains = res.data.obj;
} }
}); });
}, },
addDomain() { addDomain() {
axios.post('blocked-domains/', this.addForm).then(res => { axios.post(basePath + 'blocked-domains/', this.addForm).then(res => {
if (res.data.success) { if (res.data.success) {
this.showAddModal = false; this.showAddModal = false;
this.addForm = { domain: '', comment: '' }; this.addForm = { domain: '', comment: '' };
@ -89,7 +89,7 @@
}); });
}, },
editDomain() { editDomain() {
axios.put(`blocked-domains/${this.editForm.id}`, this.editForm).then(res => { axios.put(basePath + `blocked-domains/${this.editForm.id}`, this.editForm).then(res => {
if (res.data.success) { if (res.data.success) {
this.showEditModal = false; this.showEditModal = false;
this.editForm = { id: null, domain: '', comment: '' }; this.editForm = { id: null, domain: '', comment: '' };
@ -102,7 +102,7 @@
title: this.i18n('delete'), title: this.i18n('delete'),
content: this.i18n('domain') + '?', content: this.i18n('domain') + '?',
onOk: () => { onOk: () => {
axios.delete(`blocked-domains/${id}`).then(res => { axios.delete(basePath + `blocked-domains/${id}`).then(res => {
if (res.data.success) { if (res.data.success) {
this.fetchDomains(); this.fetchDomains();
} }