乡村相册 接口对接
This commit is contained in:
@@ -28,6 +28,14 @@ instance.interceptors.response.use(res => {
|
||||
if (res.data) {
|
||||
if (res.data.code) {
|
||||
if (res.data.code == 0) {
|
||||
return res.data
|
||||
} else if (res.data.code === 1) {
|
||||
uni.showToast({
|
||||
title: res.data.msg,
|
||||
duration: 2000,
|
||||
icon: 'none'
|
||||
})
|
||||
|
||||
return res.data
|
||||
} else if (res.data.code == 401) {
|
||||
store.commit("logout");
|
||||
|
||||
Reference in New Issue
Block a user