工作台时间显示问题
continuous-integration/drone/push Build is running Details

main
wangxiaoshuang 2025-12-04 13:40:44 +08:00
parent 09e5bcb3b7
commit 9d601b4a46
1 changed files with 5 additions and 2 deletions

View File

@ -88,7 +88,7 @@
<span style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;max-width: 150px">{{
user.RealName }}</span>
</div>
<div style="font-size: .75rem;line-height: 18px;color:#999" v-if="NODE_ENV !== 'usa'">{{ new
<div style="font-size: .75rem;line-height: 18px;color:#999" v-if="isEN">{{ new
Date().getFullYear() }}{{ $t('common:date:today') }}{{ new Date().getMonth() +
1 }}{{ $t('common:date:month') }}{{ new Date().getDate() }}{{ $t('common:date:day') }}{{ dayOfWeek }}
</div>
@ -644,7 +644,10 @@ export default {
},
computed: {
...mapGetters(['userId', 'name']),
...mapState('user', ['isTestUser'])
...mapState('user', ['isTestUser']),
isEN() {
return this.$i18n.locale !== 'zh'
},
},
mounted() {
this.getUserTobeDoneRecord()