Commit 2d6d7e19 authored by xiangzj's avatar xiangzj

优化接口

parent 6779e8df
...@@ -105,6 +105,11 @@ class Request { ...@@ -105,6 +105,11 @@ class Request {
url: "/pages/login/login" url: "/pages/login/login"
}) })
} }
uni.showToast({
title: '服务器异常',
duration: 2000,
icon: 'none'
})
reject(response) reject(response)
} }
} }
......
...@@ -16,7 +16,7 @@ export async function apiFindUnreadMsg(params) { ...@@ -16,7 +16,7 @@ export async function apiFindUnreadMsg(params) {
* @returns {Promise<AxiosResponse<T>>} * @returns {Promise<AxiosResponse<T>>}
*/ */
export async function apiEditStatus(params) { export async function apiEditStatus(params) {
const res = await apiHelper.post('/crm-app//message/editStatus', params, { const res = await apiHelper.post('/crm-app/message/editStatus', params, {
'Content-Type': "application/x-www-form-urlencoded" 'Content-Type': "application/x-www-form-urlencoded"
}) })
return res return res
...@@ -25,4 +25,4 @@ export async function apiEditStatus(params) { ...@@ -25,4 +25,4 @@ export async function apiEditStatus(params) {
export default { export default {
apiFindUnreadMsg apiFindUnreadMsg
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment