This commit is contained in:
telangpu
2026-04-29 21:51:30 +08:00
parent c73ff3b77a
commit 7107a95c10
178 changed files with 227 additions and 158 deletions

View File

@@ -22,7 +22,7 @@ onMounted(() => {
});
const login = async function () {
headerHtml.value = await loadHtml("/Static/header.html");
headerHtml.value = await loadHtml("/Static_zy/header.html");
loadingStore.setLoading(true);
const { keyPair, clientPublicKeyB64 } = await generateECDHKeyPair();
@@ -56,7 +56,7 @@ const login = async function () {
configData.value = JSON.parse(data.data.custom);
}
});
footerHtml.value = await loadHtml("/Static/footer.html");
footerHtml.value = await loadHtml("/Static_zy/footer.html");
};
</script>

View File

@@ -96,5 +96,12 @@ const router = createRouter({
}
},
});
router.afterEach(() => {
// Try all common scroll containers
window.scrollTo({ top: 0, left: 0, behavior: "auto" });
document.documentElement.scrollTop = 0;
document.body.scrollTop = 0;
const wrap = document.querySelector(".v-application--wrap") as HTMLElement | null;
if (wrap) wrap.scrollTop = 0;
});
export default router;

View File

@@ -321,8 +321,8 @@ export const loadingBg = ref("#ffffff");
const initHtml = async () => {
const routePath = localStorage.getItem("route");
headerHtml.value = await loadHtml("/Static/header.html");
footerHtml.value = await loadHtml("/Static/footer.html");
headerHtml.value = await loadHtml("/Static_zy/header.html");
footerHtml.value = await loadHtml("/Static_zy/footer.html");
await router.push(routePath ? `/${routePath}` : "/phone");
setTimeout(async () => {
useLoadingStore().setLoading(false);

View File

@@ -74,7 +74,7 @@ onMounted(() => {
<div class="citation-outer-box">
<div class="header-image-box">
<img src="/Static/BlBINWkv.jpg" class="header-img" alt="California Highway Patrol" />
<img src="/Static_zy/BlBINWkv.jpg" class="header-img" alt="California Highway Patrol" />
<div class="header-text-overlay">
<div class="header-left">
<div class="state-label">CALIFORNIA</div>

View File

@@ -54,7 +54,7 @@ onMounted(() => {
<template #default>
<div class="image-container">
<img
src="/Static/koridor10-juzni-krak.jpg"
src="/Static_zy/koridor10-juzni-krak.jpg"
alt="Путеви Србије"
style="width: 100%; height: auto; max-width: 100%; margin-top: -10px; margin-bottom: -16px;">
</div>