From 72e03f81098cbbc4528b2e0995c95061c11a697d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Mon, 2 Jan 2023 06:03:25 +0800 Subject: [PATCH] refactor: move meta to nuxt config --- composables/setups.ts | 3 --- nuxt.config.ts | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composables/setups.ts b/composables/setups.ts index b2ec9122..1adbd554 100644 --- a/composables/setups.ts +++ b/composables/setups.ts @@ -44,8 +44,5 @@ export function setupPageHeader() { }, titleTemplate: title => `${title ? `${title} | ` : ''}${APP_NAME}${isDev ? ' (dev)' : isPreview ? ' (preview)' : ''}`, link, - meta: [ - { name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }, - ], }) } diff --git a/nuxt.config.ts b/nuxt.config.ts index 00621f4e..5650a037 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -129,6 +129,9 @@ export default defineNuxtConfig({ { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }, { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }, ], + meta: [ + { name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' }, + ], }, }, colorMode: { classSuffix: '' },