mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import { defineClientConfig } from 'vuepress/client'
|
|
import type { ClientConfig } from 'vuepress/client'
|
|
import { Content } from './components/Content.js'
|
|
|
|
export default defineClientConfig({
|
|
enhance({ app }) {
|
|
if (app._context.components.Content)
|
|
delete app._context.components.Content
|
|
|
|
app.component('Content', Content)
|
|
},
|
|
}) as ClientConfig
|