mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-15 03:53:16 +08:00
🚸 load stat
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -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"
|
||||
|
||||
@@ -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("确认重新登录?");
|
||||
|
||||
Reference in New Issue
Block a user