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

closed #3869
This commit is contained in:
Sny 2024-07-26 14:28:20 +08:00 committed by GitHub
parent 57ff038d82
commit 5b7b6b1780
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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