fix: 更换读取配置调试模式
This commit is contained in:
parent
4f886bd1e3
commit
f643be7a6a
@ -78,12 +78,15 @@ export default class EntryAbility extends UIAbility {
|
||||
isJudgeInitBool: false,
|
||||
})
|
||||
|
||||
// AppStorage.setOrCreate('windowClass', windowClass)
|
||||
const config = AppStorage.get<EnvironmentConfigurationType>("EnvironmentConfiguration")
|
||||
await windowClass.setWindowLayoutFullScreen(true)
|
||||
console.log("是否调试模式", config?.isOpenDebugger)
|
||||
if (config?.isOpenDebugger === "0") {
|
||||
await windowClass.setWindowSystemBarEnable([]) //全屏
|
||||
let fileUtil = new FileUtils(this.context)
|
||||
const data = await fileUtil.readFile(GlobalConfig.commonFileWriteAddress + '/config/ipConfig.txt');
|
||||
if (data !== '' && data !== undefined) {
|
||||
const config: EnvironmentConfigurationType = JSON.parse(data)
|
||||
await windowClass.setWindowLayoutFullScreen(true)
|
||||
console.log("是否调试模式", config?.isOpenDebugger)
|
||||
if (config?.isOpenDebugger === "0") {
|
||||
await windowClass.setWindowSystemBarEnable([]) //全屏
|
||||
}
|
||||
}
|
||||
windowStage.loadContent('pages/Index', (err, data) => {
|
||||
if (err.code) {
|
||||
|
||||
@ -31,7 +31,6 @@ import {
|
||||
MarkRules,
|
||||
MASYSSETTableType,
|
||||
PerLane,
|
||||
ProcessDataEnumType,
|
||||
Project,
|
||||
ProjectInfo,
|
||||
ProjectInfos,
|
||||
@ -43,7 +42,6 @@ import {
|
||||
} from '../model';
|
||||
import { GetSyncData } from '../utils/table/Operation';
|
||||
import dayTs from '../utils/Date';
|
||||
import { GetCurrentTime } from '../utils/Common';
|
||||
import FileUtils from '../utils/FileUtils';
|
||||
import SignalTrajectoryDialog from './Judge/components/SignalTrajectoryDialog';
|
||||
import { DefaultJudgeConfigData, InitialPerLane } from '../mock';
|
||||
@ -210,7 +208,7 @@ struct JudgePage {
|
||||
async aboutToAppear() {
|
||||
this.carInfo = AppStorage.get<CarInfoType>('carInfo')!
|
||||
this.singlePlay = AppStorage.get<boolean>('singlePlay')!
|
||||
this.startFullTime = GetCurrentTime(1);
|
||||
this.startFullTime = dayTs().format("YYYYMMDDHHmmss");
|
||||
this.startTime = dayTs().format("YYYY-MM-DD HH:mm:ss")
|
||||
this.startExamTime = dayTs().format("YYYY-MM-DD HH:mm:ss")
|
||||
// let count = 0;
|
||||
@ -749,13 +747,13 @@ struct JudgePage {
|
||||
singlePlay: this.singlePlay,
|
||||
judgeConfigObj: this.judgeConfigObj,
|
||||
signalViewingClick: () => {
|
||||
dConsole.writeProcessData(ProcessDataEnumType.FourOneLogByteData, '测试测试')
|
||||
this.signalTrajectoryDialogController.open()
|
||||
},
|
||||
artificialEvaluationClick: () => {
|
||||
this.isDeductedPopShow = true
|
||||
},
|
||||
endTheExamClick: () => {
|
||||
dConsole.log(JudgeTag, "点击结束考试按钮")
|
||||
this.endExamDialogController.open()
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user