From 4ea70225bd809dfe4fd68cd2ba5fbabea3625c18 Mon Sep 17 00:00:00 2001 From: shaoqian <764213885@qq.com> Date: Tue, 9 Aug 2022 16:53:50 +0800 Subject: [PATCH] fix: fix create system app error --- packages/system-server/src/init.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/system-server/src/init.ts b/packages/system-server/src/init.ts index 4a4242ae7a..a45dba7a0b 100644 --- a/packages/system-server/src/init.ts +++ b/packages/system-server/src/init.ts @@ -51,7 +51,8 @@ async function main() { logger.info('start system extension server app') // init system app route - let rt = await createApplicationRoute(app.name, app.appid, 0) + const finalApp = await getApplicationByAppid(Config.SYSTEM_EXTENSION_APPID) + let rt = await createApplicationRoute(finalApp.name, finalApp.appid, 0) if (!rt) { logger.error('Error: create route failed') }