erlangera
erlangera
windows 不支持命令行里的用环境变量,要修改package.josn文件中scripts里相关命令中的环境变量,直接使用对应的值。 例如jaeger-ui/packages/plexus/package.json中"prepublishOnly": "$npm_execpath build",$npm_execpath 改为yarn; "build": "NODE_ENV=production npm-run-all -ln --serial _tasks/clean/* _tasks/bundle-worker --parallel _tasks/build/**",NODE_ENV=production去掉要用这个变量的地方直接用值production代替,如"_tasks/build/umd": "webpack --mode $NODE_ENV --config webpack.umd.config.js"处。 类似的还要处理jaeger-ui/packages/jaeger-ui/package.json,才能让项目运行起来。
Windows does not support the use of environment variables in the command line. You need to modify the environment variables in the relevant commands in the _scripts_ in the _package.josn_...
我推测的主要原因是在 `/src/core/components/keep-alive.ts`里面清除缓存的方法里面有个判断 ` if (entry && (!current || entry.tag !== current.tag)) {`导致如果要清除的Entry的tag与当前实例tag相同则跳过了强制destroy,个人认为这里应该使用vnode的key进行进一步判断。如 ` if (entry && (!current || entry.tag !== current.tag || entry.componentInstance.$vnode.key !== current.key)) {` ```typescript function pruneCacheEntry( cache:...