提交 9cf070dd 作者: 无木

feat(api-select): clear options before fetch

ApiSelect组件在发起新的请求之前先清空已有的options
上级 41e6d94b
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
- 修复滚动条样式问题 - 修复滚动条样式问题
- 修复树形表格的带有展开图标的单元格的内容对齐问题 - 修复树形表格的带有展开图标的单元格的内容对齐问题
- **AppSearch** 修复可能会搜索隐藏菜单的问题 - **AppSearch** 修复可能会搜索隐藏菜单的问题
- **其它** 修复菜单默认折叠的配置不起作用的问题 - **其它**
- 修复 safari 浏览器报错导致网站打不开 - 修复菜单默认折叠的配置不起作用的问题
- 修复`safari`浏览器报错导致网站打不开
### 🎫 Chores ### 🎫 Chores
......
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
async function fetch() { async function fetch() {
const api = props.api; const api = props.api;
if (!api || !isFunction(api)) return; if (!api || !isFunction(api)) return;
options.value = [];
try { try {
loading.value = true; loading.value = true;
const res = await api(props.params); const res = await api(props.params);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论