Еще правки с урлами и верстка

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-03-12 00:37:32 +03:00
parent dd589790c2
commit b5301f948a
10 changed files with 41 additions and 56 deletions

View File

@@ -13,7 +13,9 @@
return '/ms/questioneer/static';
} else {
// Для локальной разработки
return window.location.pathname.split('/edit')[0] + '/static';
const basePath = window.location.pathname.split('/edit')[0];
// Проверяем, заканчивается ли путь на слеш
return basePath + (basePath.endsWith('/') ? 'static' : '/static');
}
}