♻️ 重构用户登录逻辑及切换

#126
This commit is contained in:
目棃
2024-09-21 19:32:14 +08:00
parent 39a1a1dd77
commit cc7dd7c8ca
27 changed files with 739 additions and 897 deletions

View File

@@ -160,7 +160,7 @@ async function refreshAbyss(): Promise<void> {
return;
}
if (uidCur.value && uidCur.value !== user.value.gameUid) {
const confirm = showConfirm({
const confirm = await showConfirm({
title: "确定刷新?",
text: `用户UID-${user.value.gameUid}与当前深渊UID-${uidCur.value}不一致`,
});

View File

@@ -7,7 +7,7 @@
</template>
<template #append>
<div class="uc-top-btns">
<v-btn @click="refresh()" rounded variant="outlined" v-model:loading="loadData">
<v-btn @click="refresh()" :rounded="true" variant="outlined" v-model:loading="loadData">
<template #prepend>
<v-icon>mdi-refresh</v-icon>
</template>
@@ -16,7 +16,7 @@
<v-btn
:disabled="enableShare"
@click="share()"
rounded
:rounded="true"
variant="outlined"
v-model:loading="loadShare"
>
@@ -35,7 +35,7 @@
v-model="showMode"
:items="modeList"
label="详情视图模式"
hide-details
:hide-details="true"
item-title="label"
item-value="value"
variant="outlined"
@@ -126,7 +126,7 @@ const modeList = [
const enableShare = computed<boolean>(() => {
if (showOverlay.value) return true;
return !!showSelect.value;
return showSelect.value;
});
onBeforeMount(() => {