页面刷新

This commit is contained in:
xiaoxiao
2025-07-30 17:30:56 +08:00
parent 1e99ff4dfa
commit 69a4ca17e8
18 changed files with 246 additions and 103 deletions
@@ -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)