minhnt-dev: navigation
This commit is contained in:
@@ -27,6 +27,7 @@ const findDataPosition = computed(() => {
|
||||
result = currentPage.value.components && currentPage.value.components.find((component: any) => {
|
||||
return component.settings?.template === enumPageComponentTemplates.NAVIGATION && component.settings?.layout === defineTypeRecusive.TOP_NAVIGATION
|
||||
});
|
||||
console.log(result)
|
||||
break;
|
||||
case defineTypeRecusive.BOTTOM_NAVIGATION:
|
||||
result = currentPage.value.components && currentPage.value.components.find((component: any) => {
|
||||
@@ -37,13 +38,9 @@ const findDataPosition = computed(() => {
|
||||
result = {};
|
||||
break;
|
||||
}
|
||||
console.log(result)
|
||||
return result;
|
||||
});
|
||||
|
||||
// const selectComponent = (data: any) => {
|
||||
// store.page.selectComponent(data)
|
||||
// }
|
||||
console.log(findDataPosition, 'findDataPosition')
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user