HMRouter集成
This commit is contained in:
parent
63b13d7ccd
commit
46feac9a02
@ -4,7 +4,9 @@
|
||||
"dependencies": {
|
||||
"@ohos/crypto-js": "^2.0.4",
|
||||
"@ohos/dataorm": "^2.2.6",
|
||||
"@hshare/hshare-flipper": "^1.0.0"
|
||||
"@hshare/hshare-flipper": "^1.0.0",
|
||||
"@hadss/hmrouter": "^1.2.0-beta.0",
|
||||
"@hadss/hmrouter-transitions": "^1.2.0-beta.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ohos/hypium": "1.0.21",
|
||||
|
||||
@ -5,6 +5,7 @@ import notificationManager from '@ohos.notificationManager';
|
||||
import { PLVMediaPlayerStartUp } from '../startup/PLVMediaPlayerStartUp';
|
||||
import contextConstant from '@ohos.app.ability.contextConstant';
|
||||
import { patientDbManager } from '@itcast/basic';
|
||||
import { HMRouterMgr } from '@hadss/hmrouter'
|
||||
const DOMAIN = 0x0000;
|
||||
|
||||
export default class EntryAbility extends UIAbility {
|
||||
@ -17,6 +18,11 @@ export default class EntryAbility extends UIAbility {
|
||||
this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
|
||||
hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate');
|
||||
|
||||
// 初始化路由框架
|
||||
HMRouterMgr.init({
|
||||
context: this.context,
|
||||
logLevel: 'DEBUG'
|
||||
});
|
||||
|
||||
this.context.area = contextConstant.AreaMode.EL2
|
||||
PLVMediaPlayerStartUp.start(this.context)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user