czh-20260622-删除门户具体时间显示

This commit is contained in:
zhihao
2026-06-22 14:48:54 +08:00
parent 7ed14bac2a
commit 688241b2fc
2 changed files with 1 additions and 25 deletions
-16
View File
@@ -1,16 +0,0 @@
# CodeGraph data files
# These are local to each machine and should not be committed
# Database
*.db
*.db-wal
*.db-shm
# Cache
cache/
# Logs
*.log
# Hook markers
.dirty
@@ -11,10 +11,6 @@
<CalendarOutlined />
<span>{{ formattedDate }}</span>
</div>
<div class="welcome-banner__time-btn">
<ClockCircleOutlined />
<span>{{ formattedTime }}</span>
</div>
</div>
</div>
</div>
@@ -22,7 +18,7 @@
<script lang="ts" setup>
import { computed, ref, onMounted, onUnmounted } from 'vue';
import { CalendarOutlined, ClockCircleOutlined } from '@ant-design/icons-vue';
import { CalendarOutlined } from '@ant-design/icons-vue';
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
@@ -57,10 +53,6 @@
return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}${weekDays[d.getDay()]}`;
});
const formattedTime = computed(() => {
const d = now.value;
return `${String(d.getHours()).padStart(2, '0')}:${String(d.getMinutes()).padStart(2, '0')}:${String(d.getSeconds()).padStart(2, '0')}`;
});
</script>
<style lang="less" scoped>