fix: prevent state loss when popout tab and hide option for home tab
- Force loaded:true and loading:false in usePopOutTab to prevent auto-load overwriting - Hide '在新窗口中打开' option for home tab in context menu
This commit is contained in:
@@ -35,8 +35,8 @@ export function usePopOutTab() {
|
||||
content: content || '',
|
||||
unsavedContent: unsavedContent || content || '',
|
||||
isEditing: isEditing || false,
|
||||
loading: loading || false,
|
||||
loaded: loaded !== undefined ? loaded : true,
|
||||
loading: false,
|
||||
loaded: true,
|
||||
}
|
||||
|
||||
useTabStore.setState((state) => {
|
||||
|
||||
Reference in New Issue
Block a user