mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
fix: auto show artifacts when opening a conversation
This commit is contained in:
parent
d13a35ab96
commit
a9c4e4b422
1 changed files with 4 additions and 5 deletions
|
|
@ -176,7 +176,7 @@
|
||||||
{onSourceClick}
|
{onSourceClick}
|
||||||
{onTaskClick}
|
{onTaskClick}
|
||||||
{onSave}
|
{onSave}
|
||||||
onUpdate={(token) => {
|
onUpdate={async (token) => {
|
||||||
const { lang, text: code } = token;
|
const { lang, text: code } = token;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
@ -185,10 +185,9 @@
|
||||||
!$mobile &&
|
!$mobile &&
|
||||||
$chatId
|
$chatId
|
||||||
) {
|
) {
|
||||||
setTimeout(() => {
|
await tick();
|
||||||
showArtifacts.set(true);
|
showArtifacts.set(true);
|
||||||
showControls.set(true);
|
showControls.set(true);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
onPreview={async (value) => {
|
onPreview={async (value) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue