Skip to content

Commit

Permalink
docs: 修订部分内容
Browse files Browse the repository at this point in the history
  • Loading branch information
simply-none committed Apr 11, 2024
1 parent 99cc4fb commit baefd50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/usage-frame/vue/vue3保点.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
vscode插件:

- typescript vue plugin
- volar
- volar(已废弃,继续使用会导致vscode编辑器代码出现类型报错,可迁移到vue official)
- vetur:vue2专用,用在vue3中会产生报错信息

注意:

Expand Down
7 changes: 6 additions & 1 deletion docs/usage-project/项目实践/重要的工作共识.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@

**在安装运行时报错**,可能的情况有:

- nodejs、npm版本不一致
- nodejs、npm版本、npm工具(pnpm,cnpm)、npm源不一致
- 项目依赖的重要npm包的版本不一致
- 项目绝对路径包括中文

同理,在其他操作场景中,报错的情况也和上面的类似,比如在部署deploy中,部署失败也可能是由于部署使用的某个依赖的版本不一致。

## 再读typescript文档思考

近期重新读阅typescript官网文档,在读到函数重载一节时,对`Because both overloads have the same argument count and same return type, we can instead write a non-overloaded version of the function:`产生了错误的理解,经过提[issue](https://github.com/microsoft/TypeScript-Website/issues/3048)与人探讨后,发现还是自身理解不足。有的时候,做事情并非需要完全按部就班,也可以独辟蹊径,略微一点的改变,往往能够取得更好的效果。

## 涉猎新领域或语言时的诸多思考

> 以搭建vitepress博客为例
Expand Down

0 comments on commit baefd50

Please sign in to comment.