mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix: 修复测试折叠展开问题;导入表时 首次打开 数据源下拉渲染失败问题
This commit is contained in:
@ -84,15 +84,16 @@ async function getDataNames() {
|
||||
const { error, data: dataNames } = await fetchGetGenDataNames();
|
||||
if (error) return;
|
||||
dataNameOptions.value = dataNames.map(item => ({ label: item, value: item }));
|
||||
|
||||
resetSearchParams();
|
||||
searchParams.dataName = dataNameOptions.value.length ? dataNameOptions.value[0].value : null;
|
||||
data.value = [];
|
||||
checkedRowKeys.value = [];
|
||||
}
|
||||
|
||||
watch(visible, () => {
|
||||
if (visible.value) {
|
||||
getDataNames();
|
||||
resetSearchParams();
|
||||
searchParams.dataName = dataNameOptions.value.length ? dataNameOptions.value[0].value : null;
|
||||
data.value = [];
|
||||
checkedRowKeys.value = [];
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user