mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 修复 Qodana 报错
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user