fix log scroll
This commit is contained in:
@@ -50,5 +50,9 @@ export const useLogsStore = defineStore('logs', () => {
|
||||
logs.value = []
|
||||
}
|
||||
|
||||
return { logs, addLog, initListener, clearLogs }
|
||||
// UI State Persistence
|
||||
const autoScroll = ref(true)
|
||||
const scrollTop = ref(0)
|
||||
|
||||
return { logs, addLog, initListener, clearLogs, autoScroll, scrollTop }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user