start
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* Корневой компонент. Класс body задан на уровне страницы,
|
||||
* потому что в исходной вёрстке главная и страница вузов различаются:
|
||||
* index.html — «font-face-all», vus.html — «text-color».
|
||||
*/
|
||||
const route = useRoute();
|
||||
|
||||
useHead({
|
||||
bodyAttrs: {
|
||||
class: computed(() => (route.path === "/vus" ? "text-color" : "font-face-all")),
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<NuxtPage />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user