File tree 1 file changed +7
-3
lines changed
ecosystem/plugin-theme-data/src/client
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { setupDevtoolsPlugin } from '@vue/devtools-api'
2
- import { defineClientConfig , routeLocaleSymbol } from '@vuepress/client'
2
+ import {
3
+ defineClientConfig ,
4
+ type RouteLocaleRef ,
5
+ routeLocaleSymbol ,
6
+ } from '@vuepress/client'
3
7
import { computed } from 'vue'
4
8
import {
5
9
resolveThemeLocaleData ,
@@ -11,8 +15,8 @@ export default defineClientConfig({
11
15
enhance ( { app } ) {
12
16
// provide theme data & theme locale data
13
17
const themeData = useThemeData ( )
14
- const routeLocale =
15
- app . _context . provides [ routeLocaleSymbol as unknown as string ]
18
+ const routeLocale : RouteLocaleRef =
19
+ app . _context . provides [ routeLocaleSymbol as unknown as symbol ]
16
20
const themeLocaleData = computed ( ( ) =>
17
21
resolveThemeLocaleData ( themeData . value , routeLocale . value )
18
22
)
You can’t perform that action at this time.
0 commit comments