ruoyi-ui/src/views/homeRoot/index.vue
@@ -422,6 +422,8 @@ } ); }, //问候(时间判断) setGreeting() { const currentTime = new Date(); const currentHour = currentTime.getHours(); @@ -436,7 +438,7 @@ this.greeting = "晚上好"; } }, //问候(获取用户名称) getUser() { getUserProfile().then(response => { this.user = response.data;