czh-20260622-删除门户具体时间显示
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user