fix: 更新依赖项版本并优化远程应用连接逻辑
This commit is contained in:
@@ -47,14 +47,14 @@ export const runServer = async (port: number = 51515, listenPath = '127.0.0.1')
|
||||
qwenAsr,
|
||||
]);
|
||||
const manager = useContextKey('manager', new AssistantApp(assistantConfig, app));
|
||||
setTimeout(() => {
|
||||
manager.load({ runtime: 'client' }).then(() => {
|
||||
console.log('Assistant App Loaded');
|
||||
});
|
||||
manager.initRemoteApp()
|
||||
manager.initRouterApp()
|
||||
setTimeout(async () => {
|
||||
await manager.load({ runtime: 'client' });
|
||||
console.log('Assistant App Loaded');
|
||||
await manager.checkLocalUser()
|
||||
await manager.initRemoteApp();
|
||||
await manager.initRouterApp();
|
||||
if (runtime.isServer) {
|
||||
manager.initRoutes();
|
||||
await manager.initRoutes();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user