🐛 修复 Cookie 无法输入的问题

This commit is contained in:
BTMuli
2023-08-31 15:40:13 +08:00
parent 6e21242e11
commit cf691d8b51

View File

@@ -140,17 +140,19 @@
/> />
</template> </template>
</v-list-item> </v-list-item>
<v-list-item> <v-list-item @click="confirmInputCK">
<template #prepend> <template #prepend>
<v-icon>mdi-cookie</v-icon> <v-icon>mdi-cookie</v-icon>
</template> </template>
<template #title> <template #title>
<span style="cursor: pointer" @click="confirmInputCK">手动输入 Cookie</span> <span style="cursor: pointer">手动输入 Cookie</span>
</template> </template>
<template #append> <template #append>
<v-icon <v-icon
style="cursor: pointer" style="cursor: pointer"
title="如何获取 Cookie"
@click="toOuter('https://github.com/BTMuli/Tauri.Genshin/issues/18')" @click="toOuter('https://github.com/BTMuli/Tauri.Genshin/issues/18')"
@click.prevent.stop
> >
mdi-help-circle-outline mdi-help-circle-outline
</v-icon> </v-icon>
@@ -536,9 +538,11 @@ async function confirmResetApp(): Promise<void> {
// 输入 cookie // 输入 cookie
async function confirmInputCK(): Promise<void> { async function confirmInputCK(): Promise<void> {
const res = await showConfirm({ const res = await showConfirm({
title: "确认手动输入 Cookie 吗?", title: "输入 Cookie",
text: "Cookie",
mode: "input",
}); });
if (!res) { if (res === false) {
showSnackbar({ showSnackbar({
color: "grey", color: "grey",
text: "已取消输入Cookie", text: "已取消输入Cookie",