Skip to content

[Bug report] npm版本与当前code版本一致但是代码不一致的问题 #92

@ghost

Description

✅ Checklist

  • I am using the latest version

🔎 Description

版本差别

yarn 下载的版本是 2.0.0-alpha.26

git clone下来的版本也是2.0.0-alpha.26

代码差别

ArticleHeader.vue 中 处理tags中的方法代码不一致

这是npm 下载下来包里面的代码

const getPathByTag = (tag: string) => {
  return tagMap.value.map[tag].path;
};

这是clone下来的代码

const getPathByTag = (tag: string) => tagMap.value.map[tag]?.path || "/";

请问作者是不是忘记更新版本了?

📄 Environment info (npx vuepress info)

Node: 16.15.0 
Yarn: 1.22.18 
npm: 8.5.5 


"vuepress": "2.0.0-beta.49",
"vuepress-theme-gungnir": "2.0.0-alpha.26"

🔗 Reproduction link / repo:

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions