fix: 代码逻辑调整

This commit is contained in:
xuziqiang
2024-07-12 17:39:31 +08:00
parent c31b5468c7
commit 4526da936e
4 changed files with 8 additions and 130 deletions

View File

@@ -49,11 +49,10 @@
const toggle = () => {
visible.value = !visible.value;
clearData();
visible.value && getData(currentId.value);
};
onMounted(() => {
getData(currentId.value);
});
onMounted(() => {});
const filterOption = (inputValue: string, option: any) => {
return option?.title.toLowerCase().indexOf(inputValue.toLowerCase()) > -1;