weichen 4 лет назад
Родитель
Сommit
23869db9f9
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      backstage/static/js/utils.js

+ 4 - 0
backstage/static/js/utils.js

@@ -23,4 +23,8 @@ function removeDescElement(p, textArea, inputButton, removeButton) {
 
 function removeDescData(blockArray, blockIndex, dataIndex) {
   blockArray[blockIndex].data.splice(dataIndex, 1);
+}
+
+const contentUrl = () => {
+  return 'http://localhost:1313' + (JSON.parse(document.getElementById('url').textContent)).url + '/';
 }