Perf: worfklow scroll cannot wheel. Adapt wrokflow skip circle. Change tab alway output stream (#2688)
* perf: teaxtarea no wheel * remove render error * adapt workflow skip circle * perf: change tab can stream output
This commit is contained in:
@@ -13,3 +13,12 @@ export const getWebLLMModel = (model?: string) => {
|
||||
const list = useSystemStore.getState().llmModelList;
|
||||
return list.find((item) => item.model === model || item.name === model) ?? list[0];
|
||||
};
|
||||
|
||||
export const watchWindowHidden = () => {
|
||||
// @ts-ignore
|
||||
if (document.hidden) {
|
||||
window.windowHidden = true;
|
||||
} else {
|
||||
window.windowHidden = false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user