浏览代码

chore(component): 优化EditableCell组件handleSubmit方法报错时增加warn日志显示 (#3981)

closed #3869
Sny 8 月之前
父节点
当前提交
5b7b6b1780
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/components/Table/src/components/editable/EditableCell.vue

+ 2 - 0
src/components/Table/src/components/editable/EditableCell.vue

@@ -17,6 +17,7 @@
   import { treeToList } from '@/utils/helper/treeHelper';
   import { Spin } from 'ant-design-vue';
   import { parseRowKey } from '../../helper';
+  import { warn } from '@/utils/log';
 
   export default defineComponent({
     name: 'EditableCell',
@@ -282,6 +283,7 @@
               });
             } catch (e) {
               result = false;
+              warn(e);
             } finally {
               spinning.value = false;
             }