From 9cf070dd6305bb69a67ab6be85ef00bddc86fda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Thu, 8 Jul 2021 02:50:33 +0800 Subject: [PATCH] feat(api-select): clear options before fetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ApiSelect组件在发起新的请求之前先清空已有的options --- CHANGELOG.zh_CN.md | 5 +++-- src/components/Form/src/components/ApiSelect.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 9891a662..9bc8a1e8 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -4,8 +4,9 @@ - 修复滚动条样式问题 - 修复树形表格的带有展开图标的单元格的内容对齐问题 - **AppSearch** 修复可能会搜索隐藏菜单的问题 -- **其它** 修复菜单默认折叠的配置不起作用的问题 -- 修复 safari 浏览器报错导致网站打不开 +- **其它** + - 修复菜单默认折叠的配置不起作用的问题 + - 修复`safari`浏览器报错导致网站打不开 ### 🎫 Chores diff --git a/src/components/Form/src/components/ApiSelect.vue b/src/components/Form/src/components/ApiSelect.vue index 1b224e82..8f9702bb 100644 --- a/src/components/Form/src/components/ApiSelect.vue +++ b/src/components/Form/src/components/ApiSelect.vue @@ -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); -- GitLab