feat:更新文件服务路径
This commit is contained in:
@@ -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 }
|
||||
})
|
||||
|
||||
@@ -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静态资源
|
||||
|
||||
Reference in New Issue
Block a user