diff --git a/theme/GlobalThemeDemo/entry/src/main/ets/pages/Index.ets b/theme/GlobalThemeDemo/entry/src/main/ets/pages/Index.ets index a880b916565dba0697ffcd2c8f7620232c002a8f..9203880efa9fabe506002d314c542cee8b265073 100644 --- a/theme/GlobalThemeDemo/entry/src/main/ets/pages/Index.ets +++ b/theme/GlobalThemeDemo/entry/src/main/ets/pages/Index.ets @@ -1,3 +1,4 @@ +ThemeControl.enableTheme(true) @Entry @Component diff --git a/theme/ThemeDemo/entry/src/main/ets/pages/Index.ets b/theme/ThemeDemo/entry/src/main/ets/pages/Index.ets index 48b9f76838618ed38939b18762a0512cda91efc1..49aa028898bb557684fae8f42208cde3506de764 100644 --- a/theme/ThemeDemo/entry/src/main/ets/pages/Index.ets +++ b/theme/ThemeDemo/entry/src/main/ets/pages/Index.ets @@ -1,5 +1,7 @@ import router from '@ohos.router' +ThemeControl.enableTheme(true) + export interface DataClass { title: string page: string