摘要: 向后台请求文件 返回的是这种文件流 如何下载 首先在axios.post的请求中把默认的 " responseType:‘json’ " 改为" responseType:‘blob’ 然后 let blob = new Blob([res.data], {type: "application/vn 阅读全文
posted @ 2020-02-26 18:56 仙乄 阅读(10130) 评论(0) 推荐(1) 编辑
摘要: timestampToTime(timestamp) { var date = new Date(timestamp); var Y = date.getFullYear() + '-'; var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+ 阅读全文
posted @ 2020-02-26 16:31 仙乄 阅读(233) 评论(0) 推荐(0) 编辑
摘要: obj1 = { "authList": [ ], "enabled": 1, "id": "b3bae8fcde0d4a50b7fbcbbccf4fe216", "lastLogin": 1564363725773, "lastLoginStr": "2019-07-29", "namePinyi 阅读全文
posted @ 2020-02-26 13:53 仙乄 阅读(7493) 评论(0) 推荐(1) 编辑