请问下我应该是参考master上的,还是参考branch v4.0的去搭建?(刚刚拉了下v4.0,好像部分功能还不太完善),大佬准备什么时候发布v4.0。 :tada: :tada: :tada:
4.0分支其实我个人觉得没太大问了吧,
比如有哪些不完善的地方?

响应式还没完善(如图)
感谢反馈,我修复了一下。
我建议可以用4.0分支了,因为没意外的话,我下周就准备发布beta版本了,之后测试一段时间之后,下个月会发布正式版本和相关教程和文章。
如果遇到任何问题都可以反馈。
谢谢大佬即时的指导~
branch v4.0 在执行 yarn run build:prod时报错
ERROR Error loading vue.config.js:
ERROR SyntaxError: Unexpected token export
C:\Users\86152\Desktop\vue-admin\vue-element-admin\src\settings.js:1
(function (exports, require, module, __filename, __dirname) { export default {
^^^^^^
SyntaxError: Unexpected token export
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Module._compile (C:\Users\86152\Desktop\vue-admin\vue-element-admin\node_modules\pirates\lib\index.js:99:2
4)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (C:\Users\86152\Desktop\vue-admin\vue-element-admin\node_modules\pirates\lib\ind
ex.js:104:7)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
branch v4.0 在执行 yarn run dev会有如下警告
WARNING: We noticed you're using the `useBuiltIns` option without declaring a core-js version. Currently, we assu
me version 2.x when no version is passed. Since this default version will likely change in future versions of Bab
el, we recommend explicitly setting the core-js version you are using via the `corejs` option.
You should also be sure that the version you pass to the `corejs` option matches the version specified in your `p
ackage.json`'s `dependencies` section. If it doesn't, you need to run one of the following commands:
npm install --save core-js@2 npm install --save core-js@3
yarn add core-js@2 yarn add core-js@3
执行yarn add core-js@2后依旧会有此警告信息
@summer1874 错误修复了。
WARNING 是一个上游的错误,和我的配置关系不大。
v4.0版本什么时候正式发布啊?我现在能用这个beta版本直接开发吗?
@zhychao 可以。 3.x.x版本开始不维护了。
@summer1874 错误修复了。
WARNING是一个上游的错误,和我的配置关系不大。
请问你是怎么修复的
升级一下 vue-cli 就可以了。
现在 4.0分支已经没这个问题了。 @imsole
OK
this.$store.dispatch('user/login', this.loginForm) 这个.dispatch('user/login')为什么是这样写的?
this.$store.dispatch('user/login', this.loginForm) 这个.dispatch('user/login')为什么是这样写的?
https://vuex.vuejs.org/zh/guide/modules.html 这是vuex的命名空间写法
很期待vue4.0,简化了很多配置
正式版已发布。
Most helpful comment
感谢反馈,我修复了一下。
我建议可以用4.0分支了,因为没意外的话,我下周就准备发布beta版本了,之后测试一段时间之后,下个月会发布正式版本和相关教程和文章。
如果遇到任何问题都可以反馈。