摘要:
处理逻辑:获取返回文件流,通过 Blob 对象构造文件后下载。 function download(data, filename, type="application/vnd.ms-excel") { let file = new Blob([data], { type: type }); if ( 阅读全文
摘要:
三、封装全局公共 BUS 数据改变,触发监听方法 1、utils 目录下 bus.js 文件代码示例: import Vue from 'vue' const Bus = new Vue() export default Bus 2、通信传递引用 bus 示例: import bus from '@ 阅读全文