fix: 移除市民字樣

This commit is contained in:
skytek_xinliang
2026-09-14 08:56:22 +08:00
parent 7abe650757
commit 17dc3df663
6 changed files with 53 additions and 31 deletions
@@ -42,13 +42,13 @@
<template #prepend>
<v-avatar color="accent" size="48">
<span class="text-white font-weight-bold text-h6">
{{ (store.userProfile.name || "市民").substring(0, 1) }}
{{ (store.userProfile.name || "姓名").substring(0, 1) }}
</span>
</v-avatar>
</template>
<v-list-item-title class="font-weight-bold">
{{ store.userProfile.name || "市民" }} 先生
{{ displayUserName }}
</v-list-item-title>
<v-list-item-subtitle class="text-white-50">{{
@@ -278,6 +278,7 @@
<script setup lang="ts">
import { ref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
import { useDisplayUserName } from "@/composables/useDisplayUserName";
import { useAppStore } from "@/stores/app";
import { useCourseStore } from "@/stores/course";
@@ -285,6 +286,7 @@ const store = useAppStore();
const courseStore = useCourseStore();
const router = useRouter();
const route = useRoute();
const displayUserName = useDisplayUserName(store.userProfile);
const drawer = ref(false);
const activeTab = ref("home");