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