fix: asset not load

This commit is contained in:
手瓜一十雪
2024-05-08 21:00:53 +08:00
parent 3268fc1014
commit 5b521409c6
4 changed files with 10 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import { SettingSelect } from "./components/SettingSelect";
import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config"
async function onSettingWindowCreated(view: Element) {
const isEmpty = (value: any) => value === undefined || value === undefined || value === '';
await OB11ConfigWrapper.Init(localStorage.getItem('auth') as string);
let ob11Config: OB11Config = await OB11ConfigWrapper.GetOB11Config();
const setOB11Config = (key: string, value: any) => {
const configKey = key.split('.');