From b4495445fbfc616a2126587ce9eec205fc1cbe19 Mon Sep 17 00:00:00 2001
From: ZZJ <zzjdsg2300@163.com>
Date: 星期三, 20 四月 2022 13:52:11 +0800
Subject: [PATCH] 授权时间修改

---
 src/views/index/components/userCard.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/views/index/components/userCard.vue b/src/views/index/components/userCard.vue
index 59ed19c..c7eb57c 100644
--- a/src/views/index/components/userCard.vue
+++ b/src/views/index/components/userCard.vue
@@ -4,7 +4,12 @@
       <img src="/images/index/榛樿澶村儚-01.png" alt="" />
     </div>
     <div class="notification" v-if="!userInfo">
-      Hi!璇� <span class="login">鐧诲綍</span>鎴�<span class="register">娉ㄥ唽</span>
+      Hi!璇�
+      <span class="login" @click="jump('/login')">鐧诲綍</span>鎴�<span
+        class="register"
+        @click="jump('/register')"
+        >娉ㄥ唽</span
+      >
     </div>
     <div class="des" v-if="!userInfo">鐧诲綍鍚庢煡鐪嬩釜浜哄伐鍏锋爮</div>
     <div class="userName" v-else>{{ userInfo.username }}</div>
@@ -49,6 +54,11 @@
       userInfo: null, //鐢ㄦ埛淇℃伅
     };
   },
+  methods: {
+    jump(url) {
+      this.$router.push(url);
+    },
+  },
 };
 </script>
 

--
Gitblit v1.8.0