diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index d24afcd0a3..ffcebce61b 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -2,7 +2,6 @@ import { ref, toRefs, computed, watch, onMounted, useAttrs } from 'vue'; import { useI18n } from 'vue-i18n'; import { useArrayData } from 'src/composables/useArrayData'; -import { useAttrs } from 'vue'; // import FetchData from 'src/components/FetchData.vue'; import { useValidator } from 'src/composables/useValidator'; const emit = defineEmits(['update:modelValue', 'update:options', 'remove']); @@ -106,6 +105,7 @@ const vnSelectRef = ref(); const isLoading = ref(false); const dataRef = ref(); const lastVal = ref(); +const useURL = computed(() => $props.url); const noOneText = t('globals.noOne'); const noOneOpt = ref({ [optionValue.value]: false, @@ -122,9 +122,6 @@ const selectValue = computed({ }, }); -const useURL = computed(() => $props.url); - -const $attrs = useAttrs(); const arrayDataKey = $props.dataKey ?? ($props.url?.length > 0 ? $props.url : $attrs.name ?? $attrs.label); diff --git a/test/cypress/integration/entry/myEntry.spec.js b/test/cypress/integration/entry/myEntry.spec.js index dca74dec2a..79b7dc8b7e 100644 --- a/test/cypress/integration/entry/myEntry.spec.js +++ b/test/cypress/integration/entry/myEntry.spec.js @@ -11,7 +11,7 @@ describe('EntryMy when is supplier', () => { it('should open buyLabel when is supplier', () => { cy.get( - '[to="/null/2"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon' + '.q-table__container>.q-table__grid-content >span:nth-child(4 )> .q-card > .column > .q-btn > .q-btn__content > .q-icon' ).click(); cy.get('.q-card__actions > .q-btn').click(); cy.window().its('open').should('be.called');