czh-20260622-删除门户具体时间显示
This commit is contained in:
@@ -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 />
|
<CalendarOutlined />
|
||||||
<span>{{ formattedDate }}</span>
|
<span>{{ formattedDate }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="welcome-banner__time-btn">
|
|
||||||
<ClockCircleOutlined />
|
|
||||||
<span>{{ formattedTime }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -22,7 +18,7 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, ref, onMounted, onUnmounted } from 'vue';
|
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';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
||||||
const userStore = useUserStore();
|
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()]}`;
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user