src/utils/helper.js
@@ -33,6 +33,18 @@ }) return arr; } // 获取字典表2 export async function getCodeList(code){ let arr; await myrequest({ method: 'get', url: `/sccg/dict/queryByCode?code=${code}` }) .then(res => { arr = res.data; }) return arr; } export async function myDownLoad(arr){ let fileName = arr.headers['content-disposition']; console.log(fileName);