src/assets/methods/resources.js
@@ -10,6 +10,11 @@ ? res.data : process.env.VUE_APP_API_URL + "/file/api/ApiDownload?md5=" + md5; }; //上传资源 export const uploadFilePath = async (fileData) => { const res = fileApi.upload(fileData); return res; }; // 获取收藏的资源 export const getCollectResource = async (key) => { if (!localStorage.getItem(tokenKey)) return []; @@ -34,6 +39,7 @@ getResourcePath, getCollectResource, setCollectResource, uploadFilePath }; export default MT;