调试frontend
This commit is contained in:
@@ -2,18 +2,18 @@ import service from '@/utils/request'
|
||||
|
||||
// 获取前端导航
|
||||
export const getHeadMenu = async () => {
|
||||
const response = await service.get('index/headmenu')
|
||||
const response = await service.get('/api/index/headmenu')
|
||||
return response.data
|
||||
}
|
||||
|
||||
// 根据路径获取单页内容
|
||||
export const getOnePageByPath = async (path: string) => {
|
||||
const response = await service.get(`index/onepage/${encodeURIComponent(path)}`)
|
||||
const response = await service.get(`/api/index/onepage/${encodeURIComponent(path)}`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
// 获取前端底部数据
|
||||
export const getFooterData = async () => {
|
||||
const response = await service.get('index/footerdata')
|
||||
const response = await service.get('/api/index/footerdata')
|
||||
return response.data
|
||||
}
|
||||
Reference in New Issue
Block a user