2020年3月4日

摘要: Assignment to property of function parameter 'item' 解决:遍历时不要直接item.xxx 修改,复制一个对象,在对象上修改,如图 nexpected chained assignment 解决:分开赋值,如图 Expected to return 阅读全文
posted @ 2020-03-04 21:39 LeeToLee 阅读(6693) 评论(0) 推荐(0) 编辑
 
摘要: 解决:在代码最顶部引入 阅读全文
posted @ 2020-03-04 14:24 LeeToLee 阅读(1590) 评论(0) 推荐(0) 编辑

2020年3月3日

摘要: 开启倒计时,直接保存到vuex中,且存储到本地持久化 // state.js const runTime = localStorage.getItem('time'); paymentRunTime:runTime // mutations.js TimeReduction(state) { thi 阅读全文
posted @ 2020-03-03 00:36 LeeToLee 阅读(1233) 评论(0) 推荐(0) 编辑

2020年2月29日

摘要: element路由跳转 阅读全文
posted @ 2020-02-29 11:32 LeeToLee 阅读(3394) 评论(0) 推荐(0) 编辑

2020年2月28日

摘要: Uncaught TypeError: Cannot read property 'disabled' of null 阅读全文
posted @ 2020-02-28 22:03 LeeToLee 阅读(1604) 评论(0) 推荐(0) 编辑

2020年2月23日

摘要: vue 上传图片 阅读全文
posted @ 2020-02-23 22:56 LeeToLee 阅读(4863) 评论(0) 推荐(0) 编辑

2020年2月22日

摘要: token 授权 阅读全文
posted @ 2020-02-22 18:51 LeeToLee 阅读(881) 评论(0) 推荐(0) 编辑
 
摘要: axios设置请求头中的Authorization信息: GET请求 this.$axios.get('/url', { headers: { 'Authorization': 'Bearer '+localStorage.getItem('token') ... }, params: { para 阅读全文
posted @ 2020-02-22 18:00 LeeToLee 阅读(10473) 评论(0) 推荐(0) 编辑

2020年2月21日

摘要: vuex,购物车 阅读全文
posted @ 2020-02-21 14:51 LeeToLee 阅读(682) 评论(0) 推荐(1) 编辑

2020年2月18日

摘要: vue-router 阅读全文
posted @ 2020-02-18 15:04 LeeToLee 阅读(588) 评论(0) 推荐(0) 编辑