fix(theme): locales preset injection failed, close #354 (#356)

This commit is contained in:
pengzhanbo 2024-11-28 00:08:51 +08:00 committed by GitHub
parent bdb1fc5eb3
commit c8afeef782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,8 +8,7 @@ export function resolveProvideData(
plugins: PlumeThemePluginOptions,
): Record<string, any> {
const root = getRootLangPath(app)
const locales = [getLocalePaths(app), root]
const locales = [...getLocalePaths(app), root]
return {
// 注入水印配置
__PLUME_WM_FP__: isPlainObject(plugins.watermark)