Olivier Massot 4 bulan lalu
induk
melakukan
2b585724e7
2 mengubah file dengan 7 tambahan dan 5 penghapusan
  1. 3 4
      components/Layout/Header.vue
  2. 4 1
      plugins/init.server.ts

+ 3 - 4
components/Layout/Header.vue

@@ -46,7 +46,6 @@ Contient entre autres le nom de l'organisation, l'accès à l'aide et aux préf
       <v-icon icon="fas fa-globe-americas" class="on-primary" />
     </v-btn>
 
-
     <LayoutHeaderMenu name="MyAccesses" />
 
     <LayoutHeaderMenu name="MyFamily" :translate-label="false" />
@@ -131,9 +130,9 @@ const showUniversalButton =
 const layoutStore = useLayoutStore()
 
 const websitesMenu = getMenu('WebsiteList')
-const isWebsitesMenuNotEmpty = computed(() => websitesMenu?.children?.length > 0)
-
-
+const isWebsitesMenuNotEmpty = computed(
+  () => websitesMenu?.children?.length > 0,
+)
 </script>
 
 <style scoped>

+ 4 - 1
plugins/init.server.ts

@@ -46,7 +46,10 @@ export default defineNuxtPlugin(async () => {
   try {
     await initiateProfile(accessId, bearer.value ?? '', switchId)
   } catch (error) {
-    if (error instanceof UnauthorizedError && runtimeConfig.public.env === 'production') {
+    if (
+      error instanceof UnauthorizedError &&
+      runtimeConfig.public.env === 'production'
+    ) {
       redirectToLogout()
     } else {
       throw error