diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index ca594b5..7da2fc8 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -71,9 +71,13 @@ export default class EntryAbility extends UIAbility { isJudgeInitBool: false, }) - AppStorage.setOrCreate('windowClass', windowClass) + // AppStorage.setOrCreate('windowClass', windowClass) + const config = AppStorage.get("EnvironmentConfiguration") await windowClass.setWindowLayoutFullScreen(true) - // await windowClass.setWindowSystemBarEnable([]) //全屏 + console.log("是否调试模式", config?.isOpenDebugger) + if (config?.isOpenDebugger === "0") { + await windowClass.setWindowSystemBarEnable([]) //全屏 + } windowStage.loadContent('pages/Index', (err, data) => { if (err.code) { hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); diff --git a/entry/src/main/ets/model/Common.ets b/entry/src/main/ets/model/Common.ets index 086bb06..302054d 100644 --- a/entry/src/main/ets/model/Common.ets +++ b/entry/src/main/ets/model/Common.ets @@ -163,6 +163,8 @@ export interface EnvironmentConfigurationType { carType?: string // 是否开启差分 isOpenFiniteDifference?: string + // 是否开启调试模式 + isOpenDebugger?: string } //全局配置 diff --git a/entry/src/main/ets/pages/TerminalInfo.ets b/entry/src/main/ets/pages/TerminalInfo.ets index d40aace..c3cc959 100644 --- a/entry/src/main/ets/pages/TerminalInfo.ets +++ b/entry/src/main/ets/pages/TerminalInfo.ets @@ -184,6 +184,14 @@ struct TerminalInfoPage { this.config.boardType = value; } }) + blockComponent({ + label: "是否开启调试", + type: 6, + value: this.config.isOpenDebugger, + change: (value: string) => { + this.config.isOpenDebugger = value; + } + }) } .backgroundColor("#282828") .height(650) @@ -349,7 +357,7 @@ struct blockComponent { }) } else { ForEach(this.type === 1 ? this.rearMachineModelList : - this.type === 2 || this.type === 5 ? this.logList : + this.type === 2 || this.type === 5 || this.type === 6 ? this.logList : this.type === 3 ? this.boardList : this.carTypeList, (item: CommonListType, index) => { Radio({ value: item.label, group: 'terRadioGroup' + this.type }) .borderColor('#E5CBA1')