Skip to content

Commit

Permalink
fix: 修复 vuepress 转换错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Nov 13, 2023
1 parent 846f948 commit 0f8e5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adaptors/api/vuepress/vuepressYamlConverterAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { toRaw } from "vue"
class VuepressYamlConverterAdaptor extends YamlConvertAdaptor {
private readonly logger = createAppLogger("vuepress-yaml-converter-adaptor")

public (post: Post, yamlFormatObj?: YamlFormatObj, cfg?: BlogConfig): YamlFormatObj {
public convertToYaml(post: Post, yamlFormatObj?: YamlFormatObj, cfg?: BlogConfig): YamlFormatObj {
this.logger.debug("您正在使用 Vuepress Yaml Converter", { post: toRaw(post) })
// 没有的情况默认初始化一个
if (!yamlFormatObj) {
Expand Down

0 comments on commit 0f8e5a2

Please sign in to comment.