feat: 登录逻辑的调整

This commit is contained in:
2025-09-20 16:13:07 +08:00
parent 67474d73a4
commit 4cdff7a594
6 changed files with 25 additions and 61 deletions

View File

@@ -1,18 +0,0 @@
<template>
<button
v-if="!hasToken"
class="reset-btn"
open-type="getPhoneNumber"
@getphonenumber="onLogin"
/>
</template>
<script setup>
import { computed, defineEmits } from "vue";
import { useAppStore } from "@/store";
import { onLogin } from "@/hooks/useGoLogin";
const emits = defineEmits(["click"]);
const hasToken = computed(() => useAppStore().hasToken);
</script>