From 21190e54e0fc3f5c5a8bc12500c48cf1853bfd62 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期五, 14 三月 2025 17:46:55 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/assets/methods/resources.js | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/assets/methods/resources.js b/src/assets/methods/resources.js index 8c3829d..2178480 100644 --- a/src/assets/methods/resources.js +++ b/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; -- Gitblit v1.9.1