页面刷新
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { iconsModel } from '../model/HomeModel'
|
||||
import { patientDbManager, PatientEntity } from '@itcast/basic';
|
||||
import { promptAction, router } from '@kit.ArkUI';
|
||||
import { BusinessError } from '@kit.BasicServicesKit';
|
||||
import { pushService } from '@kit.PushKit';
|
||||
|
||||
// interface iconsModel {
|
||||
// img:string;
|
||||
@@ -64,6 +66,16 @@ export struct HomeIconComp {
|
||||
router.pushUrl({url:'pages/Netease/imTabPage'})
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
const pushToken = pushService.getToken();
|
||||
console.info("PushService", `Get push token successfully: ${pushToken}`)
|
||||
} catch (err) {
|
||||
// fail
|
||||
let e: BusinessError = err as BusinessError;
|
||||
console.error("PushService", 'Get push token catch error: ' + e.code + ' ' + e.message);
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
}.width('100%').backgroundColor(Color.White)
|
||||
|
||||
Reference in New Issue
Block a user