vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

请对ApiSelect进行改写

Open 33550 opened this issue 1 year ago • 6 comments

希望ApiSelect进行options暴露更改

33550 avatar Jan 12 '24 08:01 33550

@33550 api 再套一层,返回 options 之前 处理一下?

xachary avatar Jan 12 '24 08:01 xachary

那样就有点麻烦了,因为在某些情况下不支持二次api请求,在对数据,进行回填的时候,进行二次封装的话,有可能造成外层数据的顺序紊乱,也有可能lodaing过长,显示失败

33550 avatar Jan 16 '24 08:01 33550

@33550 参照其他组件,加一个afterFetch是否能满足?

xxxidos avatar Jan 18 '24 06:01 xxxidos

可以,其实就是需要能option进行处理就好

33550 avatar Jan 18 '24 06:01 33550

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

anncwb avatar Apr 09 '24 01:04 anncwb

image

修改 ApiSelect 的fetch方法,能满足我目前的需求

调用的时候

image

Air1996 avatar Apr 11 '24 09:04 Air1996

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

anncwb avatar Jun 11 '24 01:06 anncwb