From 513c6eb7021b2dc12015dea7c336adf1e61fecdd Mon Sep 17 00:00:00 2001 From: Qin Guan Date: Sat, 23 Sep 2023 23:59:56 +0800 Subject: [PATCH] fix: flashbang --- app/spa-loading-template.html | 5 +++++ nuxt.config.ts | 1 + pages/app/[...slug].vue | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 app/spa-loading-template.html diff --git a/app/spa-loading-template.html b/app/spa-loading-template.html new file mode 100644 index 0000000..0533a48 --- /dev/null +++ b/app/spa-loading-template.html @@ -0,0 +1,5 @@ + diff --git a/nuxt.config.ts b/nuxt.config.ts index b510b12..f365e61 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -4,6 +4,7 @@ import { isDevelopment } from 'std-env' export default defineNuxtConfig({ ssr: false, // Firebase devtools: { enabled: true }, + spaLoadingTemplate: './app/spa-loading-template.html', vue: { defineModel: true, diff --git a/pages/app/[...slug].vue b/pages/app/[...slug].vue index 625a80d..b61e07b 100644 --- a/pages/app/[...slug].vue +++ b/pages/app/[...slug].vue @@ -35,6 +35,12 @@ useHeadSafe({ titleTemplate: (titleChunk) => { return titleChunk ? `${titleChunk} - SSTAA` : 'SSTAA' }, + meta: [ + { + name: 'color-scheme', + content: 'dark', + }, + ], link: [ { rel: 'icon',