fix(api-tree-select): fetch not triggered when params changed

修复ApiTreeSelect的params变化未能触发重新请求API数据的问题
This commit is contained in:
无木 2021-10-11 07:48:41 +08:00
parent f3f56288af
commit e1cbe23e96

View File

@ -44,7 +44,7 @@
watch(
() => props.params,
() => {
isFirstLoaded.value && fetch();
!unref(isFirstLoaded) && fetch();
},
{ deep: true },
);