Fix: Some bugs (#12441)

### What problem does this PR solve?

Fix: Some bugs
- In a production environment, a second-level page refresh results in a
white screen.
- The knowledge graph cannot be opened.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-01-05 15:28:57 +08:00
committed by GitHub
parent 4e9407b4ae
commit 00f8a80ca4
11 changed files with 39 additions and 11 deletions

View File

@ -59,6 +59,6 @@ export default storage;
// Will not jump to the login page
export function redirectToLogin() {
const env = import.meta.env;
window.location.href = location.origin + env.VITE_BASE_URL + `/login`;
// const env = import.meta.env;
window.location.href = location.origin + `/login`;
}