fix: 更新 @kevisual/api 依赖至 0.0.59,并优化本地用户检查逻辑
This commit is contained in:
@@ -48,14 +48,7 @@ export const runServer = async (port: number = 51515, listenPath = '127.0.0.1')
|
||||
]);
|
||||
const manager = useContextKey('manager', new AssistantApp(assistantConfig, app));
|
||||
setTimeout(async () => {
|
||||
await manager.load({ runtime: 'client' });
|
||||
console.log('Assistant App Loaded');
|
||||
await manager.checkLocalUser()
|
||||
await manager.initRemoteApp();
|
||||
await manager.initRouterApp();
|
||||
if (runtime.isServer) {
|
||||
await manager.initRoutes();
|
||||
}
|
||||
manager.init({ isServer: runtime.isServer });
|
||||
}, 1000);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user