error handle

This commit is contained in:
2025-10-11 11:40:41 +08:00
parent 49d7f2c37e
commit 45ec0fd021
8 changed files with 447 additions and 61 deletions

View File

@@ -78,7 +78,7 @@ class ApplicationComponent {
function dynamicServiceExample(serviceId: string) {
// 使用get方法动态获取服务
try {
const service = ServiceProvider.getServiceById(serviceId as any)
const service = ServiceProvider.getService(serviceId as any)
console.log(`动态获取服务[${serviceId}]:`, !!service)
return service
} catch (error) {