fix 修复 oss 路径漏改问题

This commit is contained in:
疯狂的狮子li
2023-04-26 22:47:28 +08:00
parent f5a21c9b6f
commit 67864e67b3
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ const baseURL = import.meta.env.VITE_APP_BASE_API;
let downloadLoadingInstance: LoadingInstance;
export default {
async oss(ossId: string | number) {
const url = baseURL + '/system/oss/download/' + ossId;
const url = baseURL + '/resource/oss/download/' + ossId;
downloadLoadingInstance = ElLoading.service({ text: '正在下载数据,请稍候', background: 'rgba(0, 0, 0, 0.7)' });
try {
const res = await axios({