Initial commit: MSH System\n\n- msh_single_uniapp: Vue 2 + UniApp 前端(微信小程序/H5/App/支付宝小程序)\n- msh_crmeb_22: Spring Boot 2.2 后端(C端API/管理端/业务逻辑)\n- models-integration: AI服务集成(Coze/KieAI/腾讯ASR)\n- docs: 产品文档与设计稿
This commit is contained in:
15
msh_single_uniapp/utils/checkOverdue.js
Normal file
15
msh_single_uniapp/utils/checkOverdue.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import {HTTP_REQUEST_URL,HEADER,TOKENNAME,HEADERPARAMS} from '@/config/app';
|
||||
import store from "../store";
|
||||
export function checkOverdue(data) {
|
||||
let Url = HTTP_REQUEST_URL,header = HEADER;
|
||||
uni.request({
|
||||
url: Url + '/api/front/user',
|
||||
method: 'GET',
|
||||
header: header,
|
||||
success:(res) =>{
|
||||
if([410000, 410001, 410002, 401].indexOf(res.data.code) !== -1){
|
||||
store.commit("LOGOUT");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user