This commit is contained in:
f4ilji
2024-10-04 12:48:19 +05:00
parent 21a6e9073b
commit cebc584a14
303 changed files with 8224 additions and 2563 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
export const linksReform = {
data() {
return {
excludedPaths: ['/sveden/', '/storage']
excludedPaths: ['/sveden/', '/storage/']
}
},
methods: {
@@ -30,12 +30,11 @@ export const linksReform = {
const defaultLinks = Array.from(this.getDefaultLinks());
const reactiveLinks = this.createReactiveLinks(defaultLinks, hostname);
// const staticLinks = this.createStaticLinks(defaultLinks, hostname);
reactiveLinks.forEach(link => {
link.addEventListener('click', (event) => {
event.preventDefault();
this.clearBodyStyles(); // Очищаем стили перед переходом
this.clearBodyStyles();
const url = link.getAttribute('href');
this.$inertia.visit(url, {
preserveScroll: false,