mirror of
https://github.com/xxxsf/vue3-h5-template.git
synced 2025-04-06 05:23:46 +08:00
1
This commit is contained in:
parent
5595c260cb
commit
9974aa8d94
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
BIN
src/images/1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 MiB |
@ -31,7 +31,7 @@ module.exports = function(router){
|
||||
console.log('before---------------');
|
||||
//可以通过在路由中的自定义字段来验证用户是否需要登陆
|
||||
if(transition.to.auth){
|
||||
alert(1);
|
||||
//alert(1);
|
||||
console.log('通过配置路由中自定义的字段验证是否需要登陆');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user