This commit is contained in:
2026-05-28 13:16:24 +08:00
parent 6f07c8bc15
commit b539cdb42f
34 changed files with 1118 additions and 779 deletions
+5 -3
View File
@@ -46,10 +46,12 @@ const toggleDarkMode = () => {
const dnfHelperStore = useDnfHelperStore();
const userInfo = computed(() => {
const helper = dnfHelperStore.helperInfo;
const hasBind = !!helper?.id;
return {
name: dnfHelperStore.helperInfo?.name ?? "尚未绑定助手ID",
id: dnfHelperStore.helperInfo?.id ?? "",
avatar: dnfHelperStore.helperInfo?.avatar ?? "",
name: helper?.name ?? "尚未绑定助手ID",
id: hasBind ? (helper?.id ?? "") : "前往计算器页绑定",
avatar: helper?.avatar ?? "",
};
});