fix(login): correct password validation message path

refactor(iframe-bridge): update route prefix from '/ragflow' to '/route-ragflow'
This commit is contained in:
2025-11-17 10:42:42 +08:00
parent 32c77d9f8e
commit 3118fa4f1b
4 changed files with 102 additions and 62 deletions

View File

@@ -50,11 +50,11 @@ export function isEmbedded(): boolean {
/**
* 将子端路由转换为宿主路由(添加宿主前缀)。
* 默认会为路径添加 '/ragflow' 前缀。
* 默认会为路径添加 '/route-ragflow' 前缀。
*/
export function toHostPath(to: string): string {
const normalized = to.startsWith('/') ? to : `/${to}`;
const target = normalized.startsWith('/route-ragflow') ? normalized : `/ragflow${normalized}`;
const target = normalized.startsWith('/route-ragflow') ? normalized : `/route-ragflow${normalized}`;
log('toHostPath()', { input: to, normalized, target });
return target;
}