const http = uni.$u.http // post请求,获取菜单 export const getDictByKey = (params, config = {}) => http.post('/userapi/getDictByKey', params, config) export const getAIReply = (params, config = {header: {"Content-Type":"application/x-www-form-urlencoded"}}) => http.post('/aichat/reply', params, config) export const getChatLog = (params, config = {}) => http.get('/aichat/get_chat_log', {params}, config)