This commit is contained in:
f4ilji
2024-12-24 16:20:50 +05:00
parent 5535bd6eb9
commit 5d66a2cc5a
15 changed files with 692 additions and 102 deletions
-5
View File
@@ -11,7 +11,6 @@
</template>
</div>
<div class="flex justify-center">
<a :href="route('client.post.index')" class="group mt-3 inline-flex items-center gap-x-1 text-sm font-semibold text-primaryBlue">
Все новости
@@ -164,8 +163,6 @@
<!-- End Grid -->
</div>
<!-- End Card Blog -->
</section>
<PageResourceList resource-id="glavnaia-stranica-resurs" />
@@ -223,8 +220,6 @@
</section>
<ClientFooterDown />
</template>
<script>
+16 -13
View File
@@ -26,20 +26,23 @@ export const linksReform = {
},
},
updated() {
const hostname = window.location.hostname;
const defaultLinks = Array.from(this.getDefaultLinks());
const reactiveLinks = this.createReactiveLinks(defaultLinks, hostname);
this.clearBodyStyles();
reactiveLinks.forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault();
this.clearBodyStyles();
const url = link.getAttribute('href');
this.$inertia.visit(url, {
preserveScroll: false,
});
});
});
// const hostname = window.location.hostname;
// const defaultLinks = Array.from(this.getDefaultLinks());
//
// const reactiveLinks = this.createReactiveLinks(defaultLinks, hostname);
//
// reactiveLinks.forEach(link => {
// link.addEventListener('click', (event) => {
// event.preventDefault();
// this.clearBodyStyles();
// const url = link.getAttribute('href');
// this.$inertia.visit(url, {
// preserveScroll: false,
// });
// });
// });
}
};