diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index cb4e958581266a84250b8f56049215005cabfd26..cf6b8c764f00f9f7471072fa779eab57134ad508 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -16,10 +16,7 @@ import { FULL_HEIGHT, FULL_WIDTH } from '../common/constant/CommonConstants'; import TabBar from '../view/TabBar'; -const uiContext: UIContext | undefined = AppStorage.get('uiContext'); -const storage = uiContext?.getSharedLocalStorage() - -@Entry(storage) +@Entry({ useSharedStorage: true }) @Component struct Index { build() {