File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ export function loadSession(id: string) {
256256 }
257257 } )
258258 setTimeout ( ( ) => {
259- FZFData . sessionOptions = fetchAllSessions ( )
259+ const seesions = fetchAllSessions ( )
260+ FZFData . sessionOptions = seesions
260261 . sort ( ( m , n ) => n . lastVisit - m . lastVisit )
261262 . filter ( k => k . id !== store . sessionId && k . id !== "index" )
262263 . map ( k => ( {
@@ -269,7 +270,12 @@ export function loadSession(id: string) {
269270 if ( id !== "index" ) {
270271 FZFData . sessionOptions . unshift ( {
271272 title : "回到主对话" ,
272- desc : "其实点击顶部 Logo 也可以直接回到主对话" ,
273+ desc :
274+ "其实点击顶部 Logo 也可以直接回到主对话。" +
275+ seesions
276+ . find ( k => k . id === "index" )
277+ ?. messages . map ( k => k . content )
278+ . join ( "\n" ) ?? "" ,
273279 extra : {
274280 id : "index"
275281 }
You can’t perform that action at this time.
0 commit comments