🐛 修复 Qodana 报错

This commit is contained in:
BTMuli
2023-07-29 14:15:26 +08:00
parent d1fa7348c8
commit 062e34e585
31 changed files with 216 additions and 162 deletions

View File

@@ -69,9 +69,9 @@ onMounted(async () => {
: (getUrl.value.icon = getUrl.value.iconDark);
});
async function listenOnTheme() {
async function listenOnTheme(): Promise<void> {
await event.listen("readTheme", (e) => {
const theme = e.payload as string;
const theme = <string>e.payload;
if (theme === "dark") {
getUrl.value.icon = getUrl.value.iconLight;
} else {