diff --git a/README.md b/README.md index 2a60c743a92f6666068797fc6776f83052079663..37edf23326f5107cac31e802c33812402190146d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ vue2 + vuex + vue-router + webpack + ES6/7 + fetch + sass + flex + svg # 项目运行 -#### 注意:由于涉及大量的 ES6/7 等新属性,nodejs 必须是 6.0 以上版本 ,node 7 是测试版,有可能会出问题,建议使用 node 6 稳定版 😱 +#### 注意:由于涉及大量的 ES6/7 等新属性,nodejs 必须是 6.0 以上版本 ,node 7 是测试版,有可能会出问题,建议使用 node 6 稳定版 ``` git clone https://github.com/bailicangdu/vue2-elm.git   diff --git a/build/utils.js b/build/utils.js index 2044de5b483b54fd3780b4a5b875d8eaa3c0fce4..e62295d0a3935e1236b5297095198468b59511be 100644 --- a/build/utils.js +++ b/build/utils.js @@ -23,7 +23,6 @@ exports.cssLoaders = function(options) { return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '') }).join('!') - // Extract CSS when that option is specified // (which is the case during production build) if (options.extract) { return ExtractTextPlugin.extract('vue-style-loader', sourceLoader) diff --git a/config/index.js b/config/index.js index b2acadea72b23d7f35ddb9df63576dceebe96fed..60d690728019f7585e35c97b53b89f533bfb0142 100644 --- a/config/index.js +++ b/config/index.js @@ -11,7 +11,6 @@ module.exports = { assetsSubDirectory: 'static', assetsPublicPath: '/elm/', productionSourceMap: true, - // Gzip off by default as many popular static hosts such as // Surge or Netlify already gzip all static assets for you. // Before setting to `true`, make sure to: // npm install --save-dev compression-webpack-plugin diff --git a/index.html b/index.html index fdb40a5fc712fb885024132c82a7c5eaa070b9ec..469656904cc394a4dd346cc70a900c7230445ad3 100644 --- a/index.html +++ b/index.html @@ -126,6 +126,7 @@ + diff --git a/package.json b/package.json index d62be23df19513042323f4081a00d64203c8768a..ff4d330c657aac1bb59930affdfafd5ab32a785c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "elm", - "version": "1.0.0", + "version": "1.0.1", "description": "vue2-elm", "author": "maguohua <1264889788@qq.com>", "private": true, diff --git a/src/components/header/head.vue b/src/components/header/head.vue index 297c330e1af65e45963fd6c742de4db619a1b430..1d9f90820651349b42975547430c5115d6dc8fb6 100644 --- a/src/components/header/head.vue +++ b/src/components/header/head.vue @@ -31,7 +31,7 @@ } }, - created(){ + mounted(){ //获取用户信息 this.getUserInfo();