🚸 load stat

This commit is contained in:
BTMuli
2026-01-18 22:21:09 +08:00
parent 0159ee38f3
commit f7eb293ae5
2 changed files with 10 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ jobs:
- name: Upload Sentry Pdb
if: matrix.settings.target == 'windows'
# TODO调整 script
run: |
echo "Uploading release: $SENTRY_RELEASE"
sentry-cli releases new "$SENTRY_RELEASE"

View File

@@ -27,10 +27,11 @@
<v-btn icon="mdi-login" title="登录胡桃云" variant="outlined" @click="tryLogin()" />
<v-btn
:disabled="!userName"
:loading="loadInfo"
icon="mdi-refresh"
title="刷新用户信息"
variant="outlined"
@click="hutaoStore.tryRefreshInfo()"
@click="refreshInfo()"
/>
<v-btn icon="mdi-lock-reset" title="重置密码" variant="outlined" @click="showVerify = true" />
<v-btn icon="mdi-cart" title="胡桃云祈愿记录服务" variant="outlined" @click="toDonate()" />
@@ -51,6 +52,7 @@ const hutaoStore = useHutaoStore();
const { userName, userInfo, isLogin } = storeToRefs(useHutaoStore());
const showVerify = ref<boolean>(false);
const loadInfo = ref<boolean>(false);
function getAccountDesc(): string {
if (!isLogin.value) return "未登录";
@@ -62,6 +64,12 @@ function getAccountDesc(): string {
return "未知";
}
async function refreshInfo(): Promise<void> {
loadInfo.value = true;
await hutaoStore.tryRefreshInfo();
loadInfo.value = false;
}
async function tryLogin(): Promise<void> {
if (isLogin.value) {
const check = await showDialog.check("确认重新登录?");