mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-12 13:10:05 +00:00
no message
This commit is contained in:
parent
a8f378c260
commit
e37714f343
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue