diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 9b0393489..b2816975c 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -17,12 +17,10 @@ const stateQuery = useStateQueryStore(); const state = useState(); const user = state.getUser(); const appName = 'Lilium'; +const pinnedModulesRef = ref(); onMounted(() => stateStore.setMounted()); - -const pinnedModulesRef = ref(); - - - -en: - Go to Salix: Go to Salix -es: - Go to Salix: Ir a Salix - diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index e78efa852..f09bed8ba 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -150,6 +150,7 @@ const tableModes = [ disable: $props.disableOption?.card, }, ]; + onBeforeMount(() => { const urlParams = route.query[$props.searchUrl]; hasParams.value = urlParams && Object.keys(urlParams).length !== 0; @@ -481,7 +482,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { :class="col.headerClass" >
@@ -523,7 +524,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { - + -import { ref, computed, watch, onBeforeMount } from 'vue'; +import { ref, computed, watch, onBeforeMount, onMounted } from 'vue'; import { useRoute } from 'vue-router'; import SkeletonSummary from 'components/ui/SkeletonSummary.vue'; -import VnLv from 'src/components/ui/VnLv.vue'; import { useArrayData } from 'src/composables/useArrayData'; import { isDialogOpened } from 'src/filters'; +import { useStateStore } from 'src/stores/useStateStore'; const props = defineProps({ url: { @@ -40,6 +40,7 @@ const { store } = arrayData; const entity = computed(() => (Array.isArray(store.data) ? store.data[0] : store.data)); const isLoading = ref(false); +const stateStore = useStateStore(); defineExpose({ entity, fetch, @@ -51,6 +52,9 @@ onBeforeMount(async () => { watch(props, async () => await fetch()); }); +onMounted(() => { + stateStore.rightDrawerChangeValue(false); +}); async function fetch() { store.url = props.url; store.filter = props.filter ?? {}; @@ -60,7 +64,6 @@ async function fetch() { isLoading.value = false; } - - diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue index ff65f759b..a198c9c05 100644 --- a/src/components/ui/VnLv.vue +++ b/src/components/ui/VnLv.vue @@ -39,7 +39,7 @@ const val = computed(() => $props.value);