Еще правки с урлами и верстка
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
return '/ms/questioneer/static';
|
||||
} else {
|
||||
// Для локальной разработки
|
||||
return window.location.pathname.split('/admin')[0] + '/static';
|
||||
const basePath = window.location.pathname.split('/admin')[0];
|
||||
// Проверяем, заканчивается ли путь на слеш
|
||||
return basePath + (basePath.endsWith('/') ? 'static' : '/static');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user