diff --git a/packages/amis-core/src/WithStore.tsx b/packages/amis-core/src/WithStore.tsx index 6c9a0d4b9..6e1c37aee 100644 --- a/packages/amis-core/src/WithStore.tsx +++ b/packages/amis-core/src/WithStore.tsx @@ -252,7 +252,7 @@ export function HocStoreFactory(renderer: { props.store?.storeType === 'ComboStore' ? undefined : syncDataFromSuper( - props.data, + store.data, (props.data as any).__super, (prevProps.data as any).__super, store, diff --git a/vite.config.ts b/vite.config.ts index ea9fdb7f3..17c70cc06 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -62,7 +62,8 @@ export default defineConfig({ }), monacoEditorPlugin({}), replace({ - __editor_i18n: !!I18N + __editor_i18n: !!I18N, + preventAssignment: true }) ].filter(n => n), optimizeDeps: {