From 59ab607b7d4fadd2b9ba467495895bcaa61345ef Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Sun, 19 Mar 2023 20:54:10 +0800 Subject: [PATCH] chore: tweaks --- docs/.vuepress/client.ts | 4 ++-- .../src/client/composables/useDocsearchOptions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/.vuepress/client.ts b/docs/.vuepress/client.ts index a656fb30e1d..db31e607df3 100644 --- a/docs/.vuepress/client.ts +++ b/docs/.vuepress/client.ts @@ -1,6 +1,6 @@ -import { defineDocsearchConfig } from '@vuepress/plugin-docsearch/client' +import { docsearchConfig } from '@vuepress/plugin-docsearch/client' -defineDocsearchConfig({ +docsearchConfig({ appId: '34YFD9IUQ2', apiKey: '9a9058b8655746634e01071411c366b8', indexName: 'vuepress', diff --git a/ecosystem/plugin-docsearch/src/client/composables/useDocsearchOptions.ts b/ecosystem/plugin-docsearch/src/client/composables/useDocsearchOptions.ts index 8b72081ce9d..8de05315002 100644 --- a/ecosystem/plugin-docsearch/src/client/composables/useDocsearchOptions.ts +++ b/ecosystem/plugin-docsearch/src/client/composables/useDocsearchOptions.ts @@ -4,7 +4,7 @@ import type { DocsearchOptions } from '../../shared/index.js' export const docsearchKey: InjectionKey = Symbol('docsearch') -export const defineDocsearchConfig = (options: DocsearchOptions): void => +export const docsearchConfig = (options: DocsearchOptions): void => defineClientData(docsearchKey, options) export const useDocsearchOptions = (): DocsearchOptions => {