Skip to content

Commit

Permalink
🐛 修复 Cookie 无法输入的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Aug 31, 2023
1 parent 6e21242 commit cf691d8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/pages/common/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,19 @@
/>
</template>
</v-list-item>
<v-list-item>
<v-list-item @click="confirmInputCK">
<template #prepend>
<v-icon>mdi-cookie</v-icon>
</template>
<template #title>
<span style="cursor: pointer" @click="confirmInputCK">手动输入 Cookie</span>
<span style="cursor: pointer">手动输入 Cookie</span>
</template>
<template #append>
<v-icon
style="cursor: pointer"
title="如何获取 Cookie?"
@click="toOuter('https://github.com/BTMuli/Tauri.Genshin/issues/18')"
@click.prevent.stop
>
mdi-help-circle-outline
</v-icon>
Expand Down Expand Up @@ -536,9 +538,11 @@ async function confirmResetApp(): Promise<void> {
// 输入 cookie
async function confirmInputCK(): Promise<void> {
const res = await showConfirm({
title: "确认手动输入 Cookie 吗?",
title: "请输入 Cookie",
text: "Cookie:",
mode: "input",
});
if (!res) {
if (res === false) {
showSnackbar({
color: "grey",
text: "已取消输入Cookie",
Expand Down

0 comments on commit cf691d8

Please sign in to comment.