diff --git a/package.json b/package.json index 5baf879..4a04539 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "main": "index.js", "dependencies": { "extract-text-webpack-plugin": "^0.8.2", - "open-browser-webpack-plugin": "^0.0.2" + "mint-ui": "^0.2.7", + "open-browser-webpack-plugin": "^0.0.2", + "weui": "^0.4.3" }, "devDependencies": { "babel-core": "^6.3.17", @@ -20,7 +22,6 @@ "html-webpack-plugin": "^1.6.2", "jshint-loader": "^0.8.3", "style-loader": "^0.13.0", - "swiper": "^3.2.0", "url-loader": "^0.5.6", "vue": "^1.0.20", "vue-hot-reload-api": "^1.2.2", @@ -43,4 +44,4 @@ }, "author": "", "license": "ISC" -} \ No newline at end of file +} diff --git a/src/routers.js b/src/routers.js index fb656ab..88881a9 100644 --- a/src/routers.js +++ b/src/routers.js @@ -29,6 +29,7 @@ module.exports = function(router){ }, }); + window.routeList=[]; router.beforeEach(function(transition){ @@ -48,6 +49,7 @@ module.exports = function(router){ } + //如果是中止,这里可以判断用户登录 //if(transition.to.path === '/forbidden'){ if(transition.to.name == 'forbidden'){ diff --git a/src/views/login.vue b/src/views/login.vue new file mode 100644 index 0000000..6fbb13d --- /dev/null +++ b/src/views/login.vue @@ -0,0 +1,15 @@ + + + \ No newline at end of file