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('.');

View File

@ -138,7 +138,7 @@
color: #333;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/qrcode/build/qrcode.min.js"></script>
<script src="./assets/qrcode.min.js"></script>
</head>
<body>

7
static/assets/qrcode.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -148,6 +148,7 @@ const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper();
async function onSettingWindowCreated(view) {
const isEmpty = (value) => value === void 0 || value === void 0 || value === "";
await OB11ConfigWrapper.Init(localStorage.getItem("auth"));
let ob11Config = await OB11ConfigWrapper.GetOB11Config();
const setOB11Config = (key, value) => {
const configKey = key.split(".");