2022年1月3日
摘要: download(data, fileName) { fileName = decodeURIComponent(fileName); console.log(data); if (!data) { this.$message.warning("文件下载失败") return; } // let u 阅读全文
posted @ 2022-01-03 17:10 巨星太空易 阅读(34) 评论(0) 推荐(0)
摘要: if (response.status == 200) { this.$message.success("下载成功!"); const blob = new Blob([response.data], { type: "application/msword" }); const downloadEl 阅读全文
posted @ 2022-01-03 17:00 巨星太空易 阅读(129) 评论(0) 推荐(0)
摘要: //定义时间转换函数 formatDate(date, fmt) { date = new Date(date); if (typeof(fmt) "undefined") { fmt = "yyyy-MM-dd HH:mm:ss"; } if (/(y+)/.test(fmt)) { fmt =  阅读全文
posted @ 2022-01-03 16:02 巨星太空易 阅读(220) 评论(0) 推荐(0)