feat: update remote app integration and enhance package configuration

This commit is contained in:
xiongxiao
2026-03-13 18:28:22 +08:00
committed by cnb
parent 6668ef299d
commit dca8ffa4ad
3 changed files with 22 additions and 16 deletions

View File

@@ -1,14 +1,17 @@
import { app, manager } from './index'
import { app } from './index'
import { RemoteApp } from '@kevisual/remote-app'
app.createRouteList()
const remote = new RemoteApp({
app,
id: 'project-search',
username: 'root'
});
const isConnect = await remote.isConnect();
if (isConnect) {
console.log('Remote app connected successfully', isConnect);
remote.listenProxy();
}
export const run = async (username: string) => {
const remote = new RemoteApp({
app,
id: 'project-search',
username: username,
});
const isConnect = await remote.isConnect();
if (isConnect) {
console.log('Remote app connected successfully', isConnect);
remote.listenProxy();
}
}