thainv-dev: Fix

This commit is contained in:
nguyen van thai
2024-07-17 10:35:35 +07:00
parent 5f9525371d
commit 795cd47e41
18 changed files with 78 additions and 43 deletions
@@ -85,6 +85,7 @@ const mapActivesToItems = (index: number) => {
const currentCategoryTree = ref<any []>([]);
if(currentArticle.value?.categoryId) {
console.log('urrentArticle.value?.categoryId', categoryTree.value)
currentCategoryTree.value = findElementPathById(categoryTree.value, currentArticle.value.categoryId)
}
function findElementPathById(categories: any[], targetId: number, path: any[] = []) {
@@ -108,7 +109,7 @@ function findElementPathById(categories: any[], targetId: number, path: any[] =
<div class="section_layout border-custom four_col_layout" :style="LAYOUT_PARSE['div.section_layout']">
<div class="left">
<div>
<div class="audio">
<!-- <div class="audio">
<div class="play">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
@@ -124,7 +125,7 @@ function findElementPathById(categories: any[], targetId: number, path: any[] =
<div class="timeline">
<input type="range" name="" id="" />
</div>
</div>
</div> -->
<div class="buttons">
<div class="actions">