fix: 增加调试模式设置
This commit is contained in:
parent
d7d1c6859d
commit
080957160a
@ -71,9 +71,13 @@ export default class EntryAbility extends UIAbility {
|
||||
isJudgeInitBool: false,
|
||||
})
|
||||
|
||||
AppStorage.setOrCreate('windowClass', windowClass)
|
||||
// AppStorage.setOrCreate('windowClass', windowClass)
|
||||
const config = AppStorage.get<EnvironmentConfigurationType>("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) ?? '');
|
||||
|
||||
@ -163,6 +163,8 @@ export interface EnvironmentConfigurationType {
|
||||
carType?: string
|
||||
// 是否开启差分
|
||||
isOpenFiniteDifference?: string
|
||||
// 是否开启调试模式
|
||||
isOpenDebugger?: string
|
||||
}
|
||||
|
||||
//全局配置
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user