This commit is contained in:
xsf 2016-08-23 15:34:50 +08:00
parent 5595c260cb
commit 9974aa8d94
4 changed files with 2 additions and 9 deletions

View File

@ -1,10 +1,6 @@
<template>
<div class="app">
<router-view></router-view>
<button @click="test()">test button!</button>
<footer class="fixed-bottom clearfix">
<div class="col4" v-for="item in items" v-link="item">
<a class="cur" href="" v-text="item.name">{{$index}}</a>
@ -41,9 +37,6 @@ module.exports = {
},
methods:{
test: function(){
console.log(1);
}
}
}

View File

@ -12,7 +12,7 @@ p{
}
.about img{
width: 180px;
margin-top: 70px;
margin-top: 60px;
}
.about{
padding-top: 15px;

BIN
src/images/1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 MiB

View File

@ -31,7 +31,7 @@ module.exports = function(router){
console.log('before---------------');
//可以通过在路由中的自定义字段来验证用户是否需要登陆
if(transition.to.auth){
alert(1);
//alert(1);
console.log('通过配置路由中自定义的字段验证是否需要登陆');
}