mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 12:32:09 +00:00
fix
This commit is contained in:
parent
46bc39c160
commit
a55a1a7102
2 changed files with 1 additions and 25 deletions
|
@ -242,7 +242,7 @@
|
||||||
<a-icon type="warning" style="color: inherit; font-size: 20px;"></a-icon>
|
<a-icon type="warning" style="color: inherit; font-size: 20px;"></a-icon>
|
||||||
[[ backupModal.description ]]
|
[[ backupModal.description ]]
|
||||||
</p>
|
</p>
|
||||||
<a-space direction="horizontal" align="center" style="margin-bottom: 10px;">
|
<a-space direction="horizontal" style="text-align: center" style="margin-bottom: 10px;">
|
||||||
<a-button type="primary" @click="exportDatabase()">
|
<a-button type="primary" @click="exportDatabase()">
|
||||||
[[ backupModal.exportText ]]
|
[[ backupModal.exportText ]]
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
|
@ -309,9 +309,6 @@
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
this.checkForGeosites();
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
loading(spinning = true, obj) {
|
loading(spinning = true, obj) {
|
||||||
if (obj == null) this.spinning = spinning;
|
if (obj == null) this.spinning = spinning;
|
||||||
|
@ -406,27 +403,6 @@
|
||||||
this.saveBtnDisable = true;
|
this.saveBtnDisable = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkForGeosites() {
|
|
||||||
const domainsToCheck = [
|
|
||||||
{
|
|
||||||
query: "category-ru-gov",
|
|
||||||
key: "this.settingsData.domains.ru",
|
|
||||||
data: [
|
|
||||||
"geosite:category-ru-gov",
|
|
||||||
"regexp:.*\\.ru$"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
];
|
|
||||||
this.loading(true);
|
|
||||||
domainsToCheck.forEach(async (dd) => {
|
|
||||||
const msg = await HttpUtil.get(`/panel/setting/searchDatafiles?query=${dd.query}`);
|
|
||||||
if (msg.success && msg.obj) {
|
|
||||||
[dd.key] = dd.data;
|
|
||||||
console.log([dd.key])
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.loading(false);
|
|
||||||
},
|
|
||||||
checkRequiredOutbounds() {
|
checkRequiredOutbounds() {
|
||||||
const newTemplateSettings = this.templateSettings;
|
const newTemplateSettings = this.templateSettings;
|
||||||
const haveIPv4Outbounds = newTemplateSettings.outbounds.some((o) => o?.tag === "IPv4");
|
const haveIPv4Outbounds = newTemplateSettings.outbounds.some((o) => o?.tag === "IPv4");
|
||||||
|
|
Loading…
Reference in a new issue