![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
weixin_44027826
这个作者很懒,什么都没留下…
展开
-
vue router
vue-router 记录1.在配置一个新的路由的时候,也就是new Router的时候默认跳转方式是hash,想改变为history需要配置mode: history,fallback: true。(浏览器在不支持history的时候转变为hash),可以在router-view外加上transtion实现渐出渐入的效果。2.关于滚动条的行为:scrollBehavior(to,fro...原创 2019-05-31 12:24:28 · 92 阅读 · 0 评论 -
vuex随笔
用脚手架的话,新建与route同级的目录,在其中新建index.js ,import Vue from ‘vue’;import Vuex from ‘vuex’; Vue.use(Vuex); export default new Vuex.Store({ strict: process.env.NODE_ENV !== 'production', modules...原创 2019-05-31 21:21:13 · 97 阅读 · 0 评论