Skip to content

Commit

Permalink
🐛 手动刷新数据
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Aug 31, 2023
1 parent 7be0f1c commit 75fb5c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/User/Characters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<script lang="ts" setup>
// vue
import { computed, onMounted, ref } from "vue";
import showSnackbar from "../../components/func/snackbar";
import ToLoading from "../../components/overlay/to-loading.vue";
import TucRoleBox from "../../components/userCharacter/tuc-role-box.vue";
import ToUcDetail from "../../components/userCharacter/tuc-detail-overlay.vue";
Expand Down Expand Up @@ -142,8 +143,13 @@ async function refreshTalent(): Promise<void> {
}
loadingTitle.value = "正在更新天赋数据";
loadingSub.value = "";
await loadRole();
loading.value = false;
showSnackbar({
text: "成功更新数据,即将刷新页面",
});
setTimeout(() => {
window.location.reload();
}, 1000);
}
async function shareRoles(): Promise<void> {
Expand Down

0 comments on commit 75fb5c2

Please sign in to comment.