Update vuex.md

This commit is contained in:
Dennis Tang 2018-05-08 14:56:43 +00:00
parent 7e0af6cfc9
commit e69d6ae0f8
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ Because we're currently using `babel-plugin-rewire`, you may encounter the follo
To prevent this error from happening, you need to export an empty function: To prevent this error from happening, you need to export an empty function:
``` ```
// /stores/getters.js or /stores/actions.js // getters.js or actions.js
// prevent babel-plugin-rewire from generating an invalid default during karma tests // prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {}; export default () => {};