项目报错:
Expected the Promise rejection reason to be an Error
http://eslint.org/docs/rules/prefer-promise-reject-errors Expected the Promise reject
ion reason to be an Error
src\store\modules\user.js:68:13
reject('error')
将 reject('error')
改为: reject(new Erro('error'))
网友评论