This commit is contained in:
xiongxiao
2026-03-15 20:59:42 +08:00
committed by cnb
parent 342b68abe3
commit bcb5552ebc
4 changed files with 14 additions and 4 deletions

View File

@@ -49,7 +49,7 @@
"@kevisual/local-app-manager": "^0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/query": "0.0.53",
"@kevisual/router": "^0.1.1",
"@kevisual/router": "^0.1.2",
"@kevisual/types": "^0.0.12",
"@kevisual/use-config": "^1.0.30",
"@opencode-ai/plugin": "^1.2.26",

View File

@@ -280,6 +280,7 @@ export class AssistantApp extends Manager {
try {
const routeStr = typeof route === 'string' ? route : route.path;
const resolvedPath = this.resolver.resolve(routeStr);
// console.log('Resolved route path:', routeStr, '->', resolvedPath);
await import(resolvedPath);
console.log('[routes] 路由已初始化', route);
} catch (err) {

View File

@@ -10,7 +10,7 @@ export const getLiveMdContent = (opts?: { more?: boolean }) => {
const token = useKey('CNB_TOKEN') || ''
const openclawPort = useKey('OPENCLAW_PORT') || '80'
const openclawUrl = url.replace('{{port}}', openclawPort)
const openclawUrlSecret = openclawUrl + '/openclaw?token=' + token
const openclawUrlSecret = openclawUrl + '/openclaw#token=' + token
const opencodePort = useKey('OPENCODE_PORT') || '100'
const opencodeUrl = url.replace('{{port}}', opencodePort)