fix: minor bug related with vnTable selectAll
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
fca1c77791
commit
cbb36d0ec7
|
@ -684,8 +684,10 @@ const handleHeaderSelection = (evt, data) => {
|
|||
ref="CrudModelRef"
|
||||
@on-fetch="
|
||||
(...args) => {
|
||||
if ($props.multiCheck.expand) {
|
||||
selectAll = false;
|
||||
selected = [];
|
||||
}
|
||||
emit('onFetch', ...args);
|
||||
}
|
||||
"
|
||||
|
|
|
@ -30,7 +30,7 @@ const onClick = async () => {
|
|||
params: { filter: JSON.stringify(filter) },
|
||||
};
|
||||
try {
|
||||
const { data } = axios.get(props.url, params);
|
||||
const { data } = await axios.get(props.url, params);
|
||||
rows.value = data;
|
||||
} catch (error) {
|
||||
const response = error.response;
|
||||
|
@ -83,7 +83,7 @@ defineEmits(['update:selected', 'select:all']);
|
|||
/>
|
||||
<span
|
||||
v-else
|
||||
v-text="t('records', { rows: rows.length ?? 0 })"
|
||||
v-text="t('records', { rows: rows?.length ?? 0 })"
|
||||
/>
|
||||
</QItemLabel>
|
||||
</QItemSection>
|
||||
|
|
Loading…
Reference in New Issue