Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
ghost opened this issue Oct 25, 2022 · 0 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Oct 25, 2022

✅ 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

@ghost ghost added the bug Something isn't working label Oct 25, 2022
@ghost ghost assigned Renovamen Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant