The route watcher in the sidebar treated any navigation away from the creatChat pages as "a new session was created" and called getMessageList(), which clears menuArr and re-fetches page 1. As a result, clicking an existing session from /platform/creatChat caused the whole session list to flicker. Only refresh when the target chat id is not already in the list, which is the real signal that a brand-new session was just created. |
||
|---|---|---|
| .. | ||
| packages | ||
| public | ||
| src | ||
| .dockerignore | ||
| .gitignore | ||
| Dockerfile | ||
| docker-entrypoint.sh | ||
| env.d.ts | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| package.json.md5 | ||
| pnpm-workspace.yaml | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||