mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🔥 移除扫码登录模块
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<template>
|
<template>
|
||||||
<ToGameLogin v-model="scan" @success="refreshUser" />
|
|
||||||
<v-card class="tcu-box">
|
<v-card class="tcu-box">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<v-avatar :image="userInfo.avatar" />
|
<v-avatar :image="userInfo.avatar" />
|
||||||
@@ -15,7 +14,6 @@
|
|||||||
icon="mdi-cellphone"
|
icon="mdi-cellphone"
|
||||||
title="验证码登录"
|
title="验证码登录"
|
||||||
/>
|
/>
|
||||||
<v-btn variant="outlined" @click="scan = true" icon="mdi-qrcode-scan" title="扫码登录" />
|
|
||||||
<v-btn
|
<v-btn
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
@click="confirmRefreshUser"
|
@click="confirmRefreshUser"
|
||||||
@@ -42,7 +40,6 @@ import TGRequest from "../../web/request/TGRequest.js";
|
|||||||
import showConfirm from "../func/confirm.js";
|
import showConfirm from "../func/confirm.js";
|
||||||
import showGeetest from "../func/geetest.js";
|
import showGeetest from "../func/geetest.js";
|
||||||
import showSnackbar from "../func/snackbar.js";
|
import showSnackbar from "../func/snackbar.js";
|
||||||
import ToGameLogin from "../overlay/to-gameLogin.vue";
|
|
||||||
|
|
||||||
interface TcUserBadgeEmits {
|
interface TcUserBadgeEmits {
|
||||||
(e: "loadOuter", v: TGApp.Component.Loading.EmitParams): void;
|
(e: "loadOuter", v: TGApp.Component.Loading.EmitParams): void;
|
||||||
@@ -54,7 +51,6 @@ const appStore = useAppStore();
|
|||||||
const userStore = storeToRefs(useUserStore());
|
const userStore = storeToRefs(useUserStore());
|
||||||
|
|
||||||
const loading = ref<boolean>(false);
|
const loading = ref<boolean>(false);
|
||||||
const scan = ref<boolean>(false);
|
|
||||||
const userInfo = ref<TGApp.App.Account.BriefInfo>({
|
const userInfo = ref<TGApp.App.Account.BriefInfo>({
|
||||||
nickname: "未登录",
|
nickname: "未登录",
|
||||||
uid: "-1",
|
uid: "-1",
|
||||||
@@ -141,7 +137,7 @@ async function refreshUser() {
|
|||||||
await TGLogger.Error("[tc-userBadge][refreshUser] cookie 不存在");
|
await TGLogger.Error("[tc-userBadge][refreshUser] cookie 不存在");
|
||||||
showSnackbar({
|
showSnackbar({
|
||||||
color: "error",
|
color: "error",
|
||||||
text: "扫码登录后才能刷新用户信息!",
|
text: "登录后才能刷新用户信息!",
|
||||||
});
|
});
|
||||||
appStore.isLogin = false;
|
appStore.isLogin = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user