diff --git a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets index cddb97aa45a55ac7d800591d15d4f14bcad28f5d..0d244a9d96438029c8dc29cf39ef46d68063fe36 100644 --- a/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets +++ b/shell/platform/ohos/flutter_embedding/flutter/src/main/ets/plugin/platform/PlatformViewsController.ets @@ -117,6 +117,10 @@ export default class PlatformViewsController implements PlatformViewsAccessibili let viewWrapper: PlatformViewWrapper | null = this.viewWrappers.get(viewId) || null; if (viewWrapper != null) { + let children = viewWrapper.getDvModel().children; + let index = RootDvModeManager.getRootDvMode().model.children.indexOf(viewWrapper.getDvModel()); + children.splice(0, children.length); + RootDvModeManager.getRootDvMode().model.children.splice(index, 1); this.viewWrappers.delete(viewId); }