mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
feat(api-select): clear options before fetch
ApiSelect组件在发起新的请求之前先清空已有的options
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user