diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 26425d0..242a37a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,7 @@ - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + $USER_HOME$/AppData/Roaming/npm/bower.cmd + + + + true + DEFINITION_ORDER - @@ -237,33 +115,31 @@ - - - - - - - @@ -273,15 +149,18 @@ + + - + + @@ -293,14 +172,16 @@ - + + + - + @@ -310,6 +191,7 @@ + project @@ -320,10 +202,12 @@ + + C:/Program Files/nodejs/node.exe $PROJECT_DIR$ true @@ -344,7 +228,9 @@ - + + @@ -353,15 +239,20 @@ 1471498492040 + + - + - + @@ -380,6 +271,9 @@ + + - - - - - - - - - + - - - - - - - + + + + - - - - + - - - - - - - + + + + - - + + + + + + + - + @@ -458,7 +340,7 @@ - + @@ -466,7 +348,7 @@ - + @@ -474,7 +356,7 @@ - + @@ -482,15 +364,17 @@ - + - + + + - + @@ -498,7 +382,90 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -506,187 +473,206 @@ - + - + - + - - - - - - - - + - + - + - + - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - - - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + - - - - - - - - - - - + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index 8da771a..dd295b1 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,7 @@ - - - 首页 - - +
diff --git a/package.json b/package.json index b5445bd..e030e80 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "learn-webpack", + "name": "vue-spa-webpack", "version": "1.0.0", "main": "index.js", "dependencies": { diff --git a/readme.md b/readme.md index 5a9c176..c6f026c 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,6 @@ # Example VUE-SPA - 有问题请联系qq:416175716 -- 将使用ES6/晚饭后到家搞~ -- 欢饮提出建议 +- 欢迎提出意见和建议! ## How to use ``` bash diff --git a/src/routers.js b/src/routers.js index 242245b..efc03a9 100644 --- a/src/routers.js +++ b/src/routers.js @@ -21,19 +21,18 @@ module.exports = function(router){ }, '/my_views': { name:'my_views', - component: require('./views/my_views.vue') + component: require('./views/my_views.vue'), }, }); window.routeList=[]; router.beforeEach(function(transition){ - console.log(11111); console.log('before---------------'); //可以通过在路由中的自定义字段来验证用户是否需要登陆 - // if(transition.to.auth){ - // console.log('通过配置路由中自定义的字段验证是否需要登陆'); - // } + if(transition.to.auth){ + console.log('通过配置路由中自定义的字段验证是否需要登陆'); + } // //如果是中止,这里可以判断用户登录 // //if(transition.to.path === '/forbidden'){ @@ -61,9 +60,9 @@ module.exports = function(router){ }); } - setTimeout(function(){ + // setTimeout(function(){ transition.next(); - },00); + // },00); }); //可以记录访问路径 diff --git a/src/views/about.vue b/src/views/about.vue index cc6a800..5a88d20 100644 --- a/src/views/about.vue +++ b/src/views/about.vue @@ -1,6 +1,6 @@ -