QYF-GitLab1
2025-02-17 1b3fd3be47ea0c06b80db9603eb1279daa0dad07
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;