Skip to content

Commit

Permalink
Merge pull request bailichen#10 from bailicangdu/master
Browse files Browse the repository at this point in the history
add tree
  • Loading branch information
bailichen authored Jun 14, 2017
2 parents 5bee4e9 + de469c7 commit c4528a2
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 8 deletions.
108 changes: 108 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,111 @@
|-- README.md // 说明
```

```
.
├── README.md
├── build
├── config
│   └── index.js
├── favicon.ico
├── index.html
├── package.json
├── printscreen
├── src
│   ├── App.vue
│   ├── components
│   │   ├── findandMe
│   │   │   └── findandMe.vue
│   │   ├── footer
│   │   │   └── foot.vue
│   │   └── header
│   │   └── head.vue
│   ├── config
│   │   ├── env.js
│   │   ├── fetch.js
│   │   ├── iscroll.js
│   │   ├── mUtils.js
│   │   ├── rem.js
│   │   ├── swiper.min.js
│   │   └── uploadPreview.js
│   ├── frames
│   │   ├── addressbook
│   │   │   ├── addressbook.vue
│   │   │   └── details
│   │   │   ├── details.vue
│   │   │   └── more
│   │   │   └── more.vue
│   │   ├── computer
│   │   │   └── computer.vue
│   │   ├── conversation
│   │   │   ├── chatmessage
│   │   │   │   ├── chatmessage.vue
│   │   │   │   └── groupchatmessage.vue
│   │   │   ├── groupchat.vue
│   │   │   └── singlechat.vue
│   │   ├── dialogue
│   │   │   └── dialogue.vue
│   │   ├── find
│   │   │   ├── find.vue
│   │   │   ├── friendcircle
│   │   │   │   └── friendcircle.vue
│   │   │   └── miniapps
│   │   │   └── miniapps.vue
│   │   ├── me
│   │   │   ├── cardbag
│   │   │   │   └── cardbag.vue
│   │   │   ├── collect
│   │   │   │   └── collect.vue
│   │   │   ├── me.vue
│   │   │   ├── personaldetails
│   │   │   │   └── personaldetails.vue
│   │   │   ├── photoalbum
│   │   │   │   └── photoalbum.vue
│   │   │   ├── settings
│   │   │   │   ├── detailset
│   │   │   │   │   ├── aboutwc.vue
│   │   │   │   │   ├── chat.vue
│   │   │   │   │   ├── currency.vue
│   │   │   │   │   ├── disturbance.vue
│   │   │   │   │   ├── help.vue
│   │   │   │   │   ├── login.vue
│   │   │   │   │   ├── newmessage.vue
│   │   │   │   │   └── privacy.vue
│   │   │   │   └── settings.vue
│   │   │   └── wallet
│   │   │   └── wallet.vue
│   │   ├── search
│   │   │   └── search.vue
│   │   └── transfer
│   │   └── transfer.vue
│   ├── images
│   ├── main.js
│   ├── router
│   │   └── router.js
│   ├── service
│   │   ├── data
│   │   │   ├── album.js
│   │   │   ├── burse.js
│   │   │   ├── chatmore.js
│   │   │   ├── collect.js
│   │   │   ├── contacts.js
│   │   │   ├── dialoglist.js
│   │   │   ├── friendcircle.js
│   │   │   ├── groupchat.js
│   │   │   ├── login.js
│   │   │   ├── search.js
│   │   │   └── userword.js
│   │   └── getData.js
│   ├── style
│   │   ├── public.scss
│   │   └── swiper.min.css
│   └── vuex
│   ├── action.js
│   ├── index.js
│   ├── mutation-types.js
│   └── mutation.js
└── tree.md
36 directories, 133 files
```
8 changes: 0 additions & 8 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const router = new VueRouter({
mode:'history', //路由模式
strict: process.env.NODE_ENV !== 'production',
scrollBehavior (to, from, savedPosition) {

if(savedPosition){
return savedPosition
} else {
Expand All @@ -33,13 +32,6 @@ router.beforeEach((to, from, next) => {
next()
})

router.beforeEach((to, from, next) => {
if(from.meta.keepAlive){
from.meta.savedPosition = document.body.scrollTop;
}
next()
})

new Vue({
router,
store,
Expand Down

0 comments on commit c4528a2

Please sign in to comment.