1. 错误使用路由导航
onBeforeRouteUpdate(async (to, from) => {
// 只有在同一个路由变化时,才会触发,从其它路由跳转过来不会触发
})
2. yarn install 出现如下错误
yarn install v1.22.18
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "19.4.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
删除 yarn.lock 文件,重新运行即可