Skip to content

Commit

Permalink
🔥 移除扫码登录模块
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Aug 2, 2024
1 parent 69157ea commit 27501ac
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/config/tc-userBadge.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>
<ToGameLogin v-model="scan" @success="refreshUser" />
<v-card class="tcu-box">
<template #prepend>
<v-avatar :image="userInfo.avatar" />
Expand All @@ -15,7 +14,6 @@
icon="mdi-cellphone"
title="验证码登录"
/>
<v-btn variant="outlined" @click="scan = true" icon="mdi-qrcode-scan" title="扫码登录" />
<v-btn
variant="outlined"
@click="confirmRefreshUser"
Expand All @@ -42,7 +40,6 @@ import TGRequest from "../../web/request/TGRequest.js";
import showConfirm from "../func/confirm.js";
import showGeetest from "../func/geetest.js";
import showSnackbar from "../func/snackbar.js";
import ToGameLogin from "../overlay/to-gameLogin.vue";
interface TcUserBadgeEmits {
(e: "loadOuter", v: TGApp.Component.Loading.EmitParams): void;
Expand All @@ -54,7 +51,6 @@ const appStore = useAppStore();
const userStore = storeToRefs(useUserStore());
const loading = ref<boolean>(false);
const scan = ref<boolean>(false);
const userInfo = ref<TGApp.App.Account.BriefInfo>({
nickname: "未登录",
uid: "-1",
Expand Down Expand Up @@ -141,7 +137,7 @@ async function refreshUser() {
await TGLogger.Error("[tc-userBadge][refreshUser] cookie 不存在");
showSnackbar({
color: "error",
text: "扫码登录后才能刷新用户信息!",
text: "登录后才能刷新用户信息!",
});
appStore.isLogin = false;
return;
Expand Down

0 comments on commit 27501ac

Please sign in to comment.