vbenjs / vue-vben-admin

A modern vue admin panel built with Vue3, Shadcn UI, Vite, TypeScript, and Monorepo. It's fast!
https://www.vben.pro
MIT License
24.24k stars 6.6k forks source link

可编辑单元格为ApiSelect时,有n行数据就会执行n遍api #1759

Closed wddw007 closed 4 months ago

wddw007 commented 2 years ago

⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

描述 Bug

可编辑单元格为ApiSelect时,且默认输入状态时,有n行数据就会执行n遍api

复现 Bug

   {
      title: '负责人',
      dataIndex: 'user',
      edit: true,
      editable: true,
      editComponent: 'ApiSelect',
      editComponentProps: {
        api: getUserByFolder,
        params: folderId,
      },
      width: 160,
    },

系统信息

anncwb commented 4 months ago

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