- 博客(2)
- 收藏
- 关注
原创 14-需求
实现跳转路由时, 回到顶部 router.afterEach(()=>{ window.scrollTo(0,0); }); //afterWEach是路由的钩子 实现: 滚动条距离顶部多少像素时, 将导航吸附在页面的顶部 <div class="nav-bar" :class="{ is_fixed: isFixed }"> //**************************************************** data() { return {
2021-10-23 17:44:16
119
原创 11-小知识点
拦截器 http://www.axios-js.com/zh-cn/docs/#%E6%8B%A6%E6%88%AA%E5%99%A8 // 添加响应拦截器 axios.interceptors.response.use(function (response) { // 对响应数据做点什么 // 开始做什么******************** let res = response.data; let path = location.hash; //根据接口文档 0
2021-10-23 17:17:25
274
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人