Skip to content

Commit

Permalink
feat(api-select): clear options before fetch
Browse files Browse the repository at this point in the history
ApiSelect组件在发起新的请求之前先清空已有的options
  • Loading branch information
mynetfan committed Jul 7, 2021
1 parent 41e6d94 commit 9cf070d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
- 修复滚动条样式问题
- 修复树形表格的带有展开图标的单元格的内容对齐问题
- **AppSearch** 修复可能会搜索隐藏菜单的问题
- **其它** 修复菜单默认折叠的配置不起作用的问题
- 修复 safari 浏览器报错导致网站打不开
- **其它**
- 修复菜单默认折叠的配置不起作用的问题
- 修复`safari`浏览器报错导致网站打不开

### 🎫 Chores

Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/src/components/ApiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
async function fetch() {
const api = props.api;
if (!api || !isFunction(api)) return;
options.value = [];
try {
loading.value = true;
const res = await api(props.params);
Expand Down

0 comments on commit 9cf070d

Please sign in to comment.