feat:更新文件服务路径

This commit is contained in:
2025-06-12 22:21:48 +08:00
parent 06911f9d2a
commit 16bc4d2232
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import { IFileInfo } from '@/types/file'
export const uploadFileApi = (form: FormData, path: string, md5: string): Promise<any> =>
cloudService({
url: '/admin-service/file',
url: '/home-service/file',
headers: {
'Content-Type': 'multipart/form-data'
},
@@ -43,7 +43,7 @@ export const getHelloAlbumsApi = (token: string): Promise<any> =>
export const getFolderInfoApi = (folderName: string): Promise<IFileInfo[]> =>
cloudService({
url: '/admin-service/file/catalog',
url: '/home-service/file/catalog',
method: 'get',
params: { folderName }
})

View File

@@ -21,12 +21,12 @@ export const setActiveClass = (parentClassName: string, elementTag: string,
/**
* 文件服务器地址
*/
export const fileServiceUrl = '/admin-service/file'
export const fileServiceUrl = '/home-service/file'
/**
* 服务器文件路径根地址
*/
export const serviceFileRootPath = '/admin-service/'
export const serviceFileRootPath = '/home-service/'
/**
* 获取assets静态资源