Forráskód Böngészése

去掉github图标

qinhb 1 éve
szülő
commit
04a9038d78
1 módosított fájl, 5 hozzáadás és 5 törlés
  1. 5 5
      src/views/dashboard/index.vue

+ 5 - 5
src/views/dashboard/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="dashboard-container">
     <!-- github角标 -->
-    <github-corner class="github-corner" />
+<!--    <github-corner class="github-corner" />-->
 
     <el-card shadow="never">
       <el-row justify="space-between">
@@ -204,16 +204,16 @@ import { useTransition, TransitionPresets } from "@vueuse/core";
 const userStore = useUserStore();
 const date: Date = new Date();
 
-const greetings = computed(() => {
+const greetings = computed?.(() => {
   const hours = date.getHours();
   if (hours >= 6 && hours < 8) {
     return "晨起披衣出草堂,轩窗已自喜微凉🌅!";
   } else if (hours >= 8 && hours < 12) {
-    return "上午好," + userStore.user.nickname + "!";
+    return "上午好," + userStore.user.userName + "!";
   } else if (hours >= 12 && hours < 18) {
-    return "下午好," + userStore.user.nickname + "!";
+    return "下午好," + userStore.user.userName + "!";
   } else if (hours >= 18 && hours < 24) {
-    return "晚上好," + userStore.user.nickname + "!";
+    return "晚上好," + userStore.user.userName + "!";
   } else if (hours >= 0 && hours < 6) {
     return "偷偷向银河要了一把碎星,只等你闭上眼睛撒入你的梦中,晚安🌛!";
   }