Skip to content

Commit

Permalink
fix: 处理某个页面加载多个Table时,第2个之后的Table初始化报出警告
Browse files Browse the repository at this point in the history
  • Loading branch information
ORACLE128G committed Nov 2, 2024
1 parent f78cc31 commit f5d77ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ async function init() {
// form 由 vben-form代替,所以不适配formConfig,这里给出警告
const formConfig = gridOptions.value?.formConfig;
if (formConfig) {
// 处理某个页面加载多个Table时,第2个之后的Table初始化报出警告
// 因为第一次初始化之后会把defaultGridOptions和gridOptions合并后缓存进State
if (formConfig && formConfig.enabled) {
console.warn(
'[Vben Vxe Table]: The formConfig in the grid is not supported, please use the `formOptions` props',
);
Expand Down

0 comments on commit f5d77ed

Please sign in to comment.