fix(nuxt): unify error page and app styles
This commit is contained in:
parent
302d0230db
commit
fffbd0134e
17
error.vue
17
error.vue
@ -1,6 +1,23 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import errorBound from "~/components/errorBound.vue";
|
import errorBound from "~/components/errorBound.vue";
|
||||||
|
const { getSession, signIn } = useAuth();
|
||||||
|
|
||||||
|
await getSession({ force: true });
|
||||||
|
|
||||||
|
const { data } = await useAuth();
|
||||||
|
|
||||||
|
let darkBool = ref(data.value?.user?.profile?.nightMode || false);
|
||||||
|
// provide("user", ref(dop?.user || null));
|
||||||
|
provide("dark", darkBool);
|
||||||
const p = defineProps<{ error: any }>();
|
const p = defineProps<{ error: any }>();
|
||||||
|
useHead({
|
||||||
|
bodyAttrs: {
|
||||||
|
"data-theme": computed(() => {
|
||||||
|
return darkBool.value ? "dark" : undefined;
|
||||||
|
}).value,
|
||||||
|
},
|
||||||
|
titleTemplate: "Error!",
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -191,7 +191,7 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: start !important;
|
justify-content: start !important;
|
||||||
/* background: inherit !important; */
|
background: inherit !important;
|
||||||
height: unset !important;
|
height: unset !important;
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user