mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
refac
This commit is contained in:
parent
c6a1469fad
commit
83fad5e9f7
1 changed files with 4 additions and 0 deletions
|
|
@ -172,6 +172,9 @@
|
|||
|
||||
if (terminal && terminal.url !== prevTerminalUrl) {
|
||||
prevTerminalUrl = terminal.url;
|
||||
loading = true;
|
||||
error = null;
|
||||
entries = [];
|
||||
(async () => {
|
||||
// Discover server features (terminal enabled/disabled)
|
||||
const config = await getTerminalConfig(terminal.url, terminal.key);
|
||||
|
|
@ -531,6 +534,7 @@
|
|||
});
|
||||
|
||||
if (!handledDisplayFile) {
|
||||
loading = true;
|
||||
if (savedPath === '/') {
|
||||
const rawCwd = await getCwd(terminal.url, terminal.key);
|
||||
const cwd = rawCwd ? normalizePath(rawCwd) : null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue