Skip to content

fix: preserve Workchat document selection - #5

Open
WangShen007 wants to merge 1 commit into
mingchen666:mainfrom
WangShen007:fix/workchat-doc-selection-state
Open

fix: preserve Workchat document selection#5
WangShen007 wants to merge 1 commit into
mingchen666:mainfrom
WangShen007:fix/workchat-doc-selection-state

Conversation

@WangShen007

Copy link
Copy Markdown
Contributor

Summary

Rationale

The selected document context was stored inside src/views/workchat/index.vue as a local ref. When navigating to another left-side page, the Workchat component can be unmounted, so the local state is recreated when returning and the selected document is no longer kept.

This PR keeps the change intentionally small and session-scoped:

  • no localStorage/sessionStorage persistence
  • no route-level behavior change
  • no database or config changes
  • state still resets after app reload

Testing

Tested on Windows 11:

  • pnpm exec vite build passed
  • launched the app with pnpm dev
  • confirmed the Reviva Electron window opened
  • manually verified the document selection remains after navigating away from Workchat and then returning

@mingchen666
mingchen666 force-pushed the main branch 2 times, most recently from 131d38f to 189c8c9 Compare July 14, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

学习台文档文件在切换导航后没有保持选中状态

1 participant