HOTFIX: #6943 CustomerList form salesPersons options #790

Closed
jsegarra wants to merge 84 commits from hotfix_newCustomer_SalesPerson into master
1 changed files with 0 additions and 25 deletions
Showing only changes of commit bf80784dd6 - Show all commits

View File

@ -60,34 +60,9 @@ async function fetch() {
}
const showRedirectToSummaryIcon = computed(() => {
const exist = existSummary(route.matched);
const isDialog = document.querySelectorAll('[role="dialog"]').length > 0;
// const isSameModule = `${route.meta.moduleName}Summary` === props.dataKey;
// if (!isSameModule) return true;
console.error(
isDialog,
'exist',
isSummary.value,
route.matched,
!isSummary.value,
route.meta.moduleName,
exist
);
return isDialog;
});
function existSummary(routes) {
const hasSummary = routes.some((r) => r.name === `${route.meta.moduleName}Summary`);
if (hasSummary) return hasSummary;
for (const current of routes) {
if (current.path != '/' && current.children) {
const exist = existSummary(current.children);
if (exist) return exist;
}
}
}
</script>
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Quitar comment y console.log

Quitar comment y console.log
<template>