zhouwx
2024-07-22 55cc4c8bbbd66ce4b33fff8712d4c53e2080b5a0
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 = ()=>{