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