摘要: mounted () { this.$router.afterEach((to, from, next) => { window.scrollTo(0, 0); //跳到别的页面会自动滚动底部 }); history.pushState(null, null, document.URL); }, 阅读全文
posted @ 2018-07-25 11:33 靥放 阅读(1523) 评论(0) 推荐(0) 编辑
摘要: 微信服务号开发时今日支付页面支付时iOS会出现当前链接还是上一个页面的链接导致微信支付失败,提示当前页面的url未注册,解决方案是判断如果是iOS的话进入该页面就自动刷新一遍。 路由文件index.js里: 支付页里: 阅读全文
posted @ 2018-07-25 11:16 靥放 阅读(767) 评论(0) 推荐(0) 编辑
摘要: import $ajax from 'axios' $ajax.defaults.withCredentials = true; $ajax.interceptors.response.use( (response)=> { // 对响应数据做点什么 // 显示 console.log("添加响应拦截器", response) if (response.data.resultC... 阅读全文
posted @ 2018-07-25 11:09 靥放 阅读(3091) 评论(0) 推荐(0) 编辑
摘要: vue-wechat-title https://www.npmjs.com/package/vue-wechat-title weixin-js-sdk https://www.npmjs.com/package/weixin-js-sdk vux https://doc.vux.li/zh-CN 阅读全文
posted @ 2018-07-25 10:50 靥放 阅读(372) 评论(0) 推荐(0) 编辑