无用代码清理
This commit is contained in:
parent
6f3bdbf176
commit
920323bc78
@ -37,8 +37,6 @@ export default class EntryAbility extends UIAbility {
|
|||||||
// this.context
|
// this.context
|
||||||
// Main window is created, set main page for this ability
|
// Main window is created, set main page for this ability
|
||||||
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
||||||
await tcpUtil.init()
|
|
||||||
|
|
||||||
|
|
||||||
globalThis.carInfo = {}
|
globalThis.carInfo = {}
|
||||||
globalThis.examinerInfo = {}
|
globalThis.examinerInfo = {}
|
||||||
@ -66,15 +64,11 @@ export default class EntryAbility extends UIAbility {
|
|||||||
globalThis.pathDir = this.context.filesDir;
|
globalThis.pathDir = this.context.filesDir;
|
||||||
globalThis.context = this.context;
|
globalThis.context = this.context;
|
||||||
globalThis.isJudgeInitBool = false
|
globalThis.isJudgeInitBool = false
|
||||||
console.info('jiangsong globalThis.pathDir = ' + globalThis.pathDir);
|
|
||||||
// this.requestPermission(this.context)
|
|
||||||
// this.featureAbilityAuth()
|
|
||||||
|
|
||||||
const windowClass = await windowStage.getMainWindow();
|
const windowClass = await windowStage.getMainWindow();
|
||||||
globalThis.windowClass = windowClass
|
globalThis.windowClass = windowClass
|
||||||
// await windowClass.setWindowLayoutFullScreen(true)
|
await windowClass.setWindowLayoutFullScreen(true)
|
||||||
// await windowClass.setWindowSystemBarEnable([]) //全屏
|
await windowClass.setWindowSystemBarEnable([])
|
||||||
await windowClass.setWindowSystemBarEnable(['navigation'])
|
|
||||||
|
|
||||||
windowStage.loadContent('pages/Index', (err, data) => {
|
windowStage.loadContent('pages/Index', (err, data) => {
|
||||||
if (err.code) {
|
if (err.code) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user