Skip to content

Commit 9441efb

Browse files
committed
fix:export default babel
1 parent 06ec755 commit 9441efb

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"presets": ["es2015", "stage-2"],
3-
"plugins": ['transform-object-assign'],
3+
"plugins": ['transform-object-assign', 'add-module-exports'],
44
"comments": false
55
}

app/web/component/app/list.vue

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
}
5151
},
5252
preFetch ({ state, dispatch, commit }) {
53-
console.log('>>>>>>>>',state, dispatch, commit);
5453
return Promise.all([
5554
dispatch('FETCH_ARTICLE_LIST')
5655
])

app/web/framework/vue/app.js

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ App.server = options => {
4444
return null;
4545
})
4646
).then(() => {
47-
console.log('>>>FETCH_ARTICLE_LIST', options.store.state);
4847
context.state = options.store.state;
4948
return new Vue(options);
5049
});

app/web/store/app/actions.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const host = 'http://127.0.0.1:7001';
1212
const actions = {
1313

1414
FETCH_ARTICLE_LIST: ({ commit, dispatch, state }) => {
15-
console.log('>>>>actions', actions);
1615
if (!state.articleList.length) {
1716
return axios.get(`${host}/app/api/article/list`)
1817
.then(response => {

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "egg-vue-webpack-boilerplate",
3-
"version": "2.0.0",
3+
"version": "0.7.0",
44
"description": "基于egg-vue-webpack-dev和egg-view-vue(ssr)插件的工程骨架项目",
55
"scripts": {
66
"build": "cross-env BUILD_ENV=prod NODE_ENV=production node build",
@@ -36,6 +36,7 @@
3636
},
3737
"devDependencies": {
3838
"autod-egg": "^1.0.0",
39+
"babel-plugin-add-module-exports": "^0.2.1",
3940
"babel-plugin-transform-object-assign": "^6.22.0",
4041
"babel-preset-es2015": "^6.24.1",
4142
"babel-preset-stage-2": "^6.24.1",

0 commit comments

Comments
 (0)