zhongshujie
10 小时以前 30d147c4c92dbfd5ca1b2f8c24a617dc82d2d25b
src/assets/methods/resources.js
@@ -1,7 +1,7 @@
import fileApi from "@/assets/js/middleGround/api/file";
import identityApi from "../js/middleGround/api/identity";
import { tokenKey } from "../js/config";
export const getResourcePath = async (md5, appRefCode = "jingshieke") => {
export const getResourcePath = async (md5, appRefCode = "tourismWebsite") => {
  const res = fileApi.getAliVod({
    md5,
    appRefCode,
@@ -9,6 +9,11 @@
  return res.data != "" && res.data != undefined
    ? 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) => {
@@ -34,6 +39,7 @@
  getResourcePath,
  getCollectResource,
  setCollectResource,
  uploadFilePath
};
export default MT;