瀏覽代碼

Shortened the welcome with the username

master
Lene Scholtz 5 年之前
父節點
當前提交
349f7fd9b4
共有 1 個檔案被更改,包括 2 行新增6 行删除
  1. 2
    6
      src/components/shared/navBar.vue

+ 2
- 6
src/components/shared/navBar.vue 查看文件

@@ -186,11 +186,7 @@
186 186
             </li>
187 187
             <li>
188 188
               <span v-if="isLoggedIn">
189
-                <a @click="routerGoTo('/user/updateProfileInfo')">
190
-                  Welcome!
191
-                  <br />
192
-                  {{ NAME }}
193
-                </a>
189
+                <a @click="routerGoTo('/user/updateProfileInfo')">Hi! {{ NAME }}</a>
194 190
               </span>
195 191
               <span v-else></span>
196 192
             </li>
@@ -225,7 +221,7 @@ export default {
225 221
       'token',
226 222
     ]),
227 223
     NAME() {
228
-      return this.person.fullName;
224
+      return this.person.name;
229 225
     },
230 226
     isLoggedIn() {
231 227
       return this.token !== null && this.token !== undefined;

Loading…
取消
儲存