Мелкая оптимизация, чтобы не отдавал большой конфиг каждый раз при обновлении страницы

This commit is contained in:
Book Pauk
2025-02-22 14:31:19 +07:00
parent 9e509ac845
commit 583b966616
4 changed files with 30 additions and 9 deletions

View File

@@ -154,8 +154,11 @@ class App {
(async() => {
//загрузим конфиг сервера
try {
const config = await miscApi.loadConfig();
this.commit('config/setConfig', config);
const config = await miscApi.loadConfig(this.config._configHash);
if (!config._useCached)
this.commit('config/setConfig', config);
this.showPage = true;
} catch(e) {
//проверим, не получен ли конфиг ранее