diff --git a/ArkUI/entry/src/main/ets/pages/ScreenBrightness.ets b/ArkUI/entry/src/main/ets/pages/ScreenBrightness.ets index 61e013b542c6a58fca855589f72f0371515c47c8..050ff8e297dbdb8b168a249548877c64da5c5a76 100644 --- a/ArkUI/entry/src/main/ets/pages/ScreenBrightness.ets +++ b/ArkUI/entry/src/main/ets/pages/ScreenBrightness.ets @@ -46,7 +46,7 @@ struct Index { }) .onClick(() => { // Get screen brightness through the getValueSync() method. - this.settingsBrightness = settings.getValueSync(this.context, settings.display.SCREEN_BRIGHTNESS_STATUS, 10); + this.settingsBrightness = settings.getValueSync(this.context, settings.display.SCREEN_BRIGHTNESS_STATUS, '10'); }) // [End getBrightnessOne] Button('设置屏幕亮度')