From 302eabb30f95e800a08f8adb7e3d92b403e9a460 Mon Sep 17 00:00:00 2001 From: SabreCat Date: Fri, 2 Jun 2023 14:58:16 -0500 Subject: [PATCH] WIP(faq): hack background to white --- website/client/src/components/static/chatSunsetFaq.vue | 1 + website/client/src/router/index.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/website/client/src/components/static/chatSunsetFaq.vue b/website/client/src/components/static/chatSunsetFaq.vue index 08d0f7abd6..2017d6b205 100644 --- a/website/client/src/components/static/chatSunsetFaq.vue +++ b/website/client/src/components/static/chatSunsetFaq.vue @@ -469,6 +469,7 @@ export default { this.$store.dispatch('common:setTitle', { subSection: this.$t('chat-sunset-faq'), }); + document.body.style.background = '#ffffff'; }, }; diff --git a/website/client/src/router/index.js b/website/client/src/router/index.js index 4827c974db..496cbfa26a 100644 --- a/website/client/src/router/index.js +++ b/website/client/src/router/index.js @@ -513,4 +513,10 @@ router.beforeEach(async (to, from, next) => { return next(); }); +router.afterEach((to, from) => { + if (from.name === 'chatSunsetFaq') { + document.body.style.background = '#f9f9f9'; + } +}); + export default router;