update: siderbar watch
This commit is contained in:
parent
311244556b
commit
5515096a6c
@ -81,6 +81,8 @@ onUnmounted(() => {
|
|||||||
@include container_wrapper;
|
@include container_wrapper;
|
||||||
@include content;
|
@include content;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import type { App } from '@vuepress/core'
|
import type { App } from '@vuepress/core'
|
||||||
import type { PlumeThemeLocaleOptions } from '../../shared'
|
import type { PlumeThemeLocaleOptions } from '../../shared'
|
||||||
import { preparedPostIndex, watchPostIndex } from './postIndex'
|
import { preparedPostIndex, watchPostIndex } from './postIndex'
|
||||||
import { preparedSidebarIndex } from './sidebarIndex'
|
import { preparedSidebarIndex, watchSidebarIndex } from './sidebarIndex'
|
||||||
|
|
||||||
export const onPrepared = (
|
export const onPrepared = (
|
||||||
app: App,
|
app: App,
|
||||||
@ -17,4 +17,5 @@ export const preparedWatch = (
|
|||||||
localeOption: PlumeThemeLocaleOptions
|
localeOption: PlumeThemeLocaleOptions
|
||||||
): void => {
|
): void => {
|
||||||
watchPostIndex(app, watchers, localeOption)
|
watchPostIndex(app, watchers, localeOption)
|
||||||
|
watchSidebarIndex(app, watchers, localeOption)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user