fix(login): correct password validation message path
refactor(iframe-bridge): update route prefix from '/ragflow' to '/route-ragflow'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user