zhouwx
2024-07-22 506eb5afacef64033f49ef831e08bbe9e6c090a9
src/views/homePage.vue
@@ -82,6 +82,10 @@
      </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 = ()=>{