From 55cc4c8bbbd66ce4b33fff8712d4c53e2080b5a0 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: Mon, 22 Jul 2024 16:25:25 +0800
Subject: [PATCH] 提交
---
src/views/homePage.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/views/homePage.vue b/src/views/homePage.vue
index 078084f..bc56f08 100644
--- a/src/views/homePage.vue
+++ b/src/views/homePage.vue
@@ -3,7 +3,7 @@
<div class="title">
<div class="logo">
<img class="pics2" :src="logoPng">
- <span style="font-size: 40px;color: black">国科鸿宇</span>
+ <span style="font-size: 40px;color: black">国泰新华</span>
<div style="width: 2px;height: 40px;background-color: #1C68A7;margin-top: 5px;margin-left: 15px;margin-right: 15px"></div>
<span style="font-size: 28px;color: white">安全在线教育平台</span>
</div>
@@ -81,6 +81,10 @@
</div>
</div>
+ </div>
+ <!-- 底部 -->
+ <div class="el-login-footer">
+ <span>Copyright ©2024-{{nowYear}} All Rights Reserved.</span>
</div>
<!-- <img class="pics1" :src="dataPng">-->
<!-- <img class="pics2" :src="searchPng">-->
@@ -161,6 +165,17 @@
const route = useRoute();
const router = useRouter();
const { proxy } = getCurrentInstance();
+const nowYear = ref();
+// 时间格式化
+const timeForm = {
+ hour12: false,
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit'
+}
const loginForm = ref({
username: "",
@@ -185,7 +200,8 @@
const redirect = ref(undefined);
onMounted(()=>{
-
+ const curTime = new Date().toLocaleString('zh', timeForm).replace(/\//g, '-');
+ nowYear.value = curTime.slice(0, 4);
})
const openRegist = ()=>{
--
Gitblit v1.9.2