随笔分类 -  VUE

摘要:https://blog.csdn.net/qq_24147051/article/details/76997838 阅读全文
posted @ 2018-11-19 10:38 靥放 阅读(237) 评论(0) 推荐(0)
摘要:config文件夹里index.js中添加: 发请求文件ajax.js中添加: 原本填写地址的文件中config.js改为: 阅读全文
posted @ 2018-11-08 16:46 靥放 阅读(161) 评论(0) 推荐(0)
摘要:需要缓存的页面代码 嵌套该组件的代码 router.js的代码 阅读全文
posted @ 2018-09-04 17:36 靥放 阅读(296) 评论(0) 推荐(0)
摘要:渲染函数 & JSX https://cn.vuejs.org/v2/guide/render-function.html 导航守卫 https://router.vuejs.org/zh/guide/advanced/navigation-guards.html#%E5%85%A8%E5%B1%8 阅读全文
posted @ 2018-07-26 15:26 靥放 阅读(233) 评论(0) 推荐(0)
摘要:参考自:https://www.cnblogs.com/gsgs/p/7294160.html 阅读全文
posted @ 2018-07-26 14:47 靥放 阅读(1053) 评论(0) 推荐(0)
摘要:mounted () { this.$router.afterEach((to, from, next) => { window.scrollTo(0, 0); //跳到别的页面会自动滚动底部 }); history.pushState(null, null, document.URL); }, 阅读全文
posted @ 2018-07-25 11:33 靥放 阅读(1561) 评论(0) 推荐(0)
摘要:微信服务号开发时今日支付页面支付时iOS会出现当前链接还是上一个页面的链接导致微信支付失败,提示当前页面的url未注册,解决方案是判断如果是iOS的话进入该页面就自动刷新一遍。 路由文件index.js里: 支付页里: 阅读全文
posted @ 2018-07-25 11:16 靥放 阅读(815) 评论(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 靥放 阅读(3136) 评论(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 靥放 阅读(409) 评论(0) 推荐(0)