You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
401 B

3 months ago
  1. import {HTTP_REQUEST_URL,HEADER,TOKENNAME,HEADERPARAMS} from '@/config/app';
  2. import store from "../store";
  3. export function checkOverdue(data) {
  4. let Url = HTTP_REQUEST_URL,header = HEADER;
  5. uni.request({
  6. url: Url + '/api/front/user',
  7. method: 'GET',
  8. header: header,
  9. success:(res) =>{
  10. if([410000, 410001, 410002, 401].indexOf(res.data.code) !== -1){
  11. store.commit("LOGOUT");
  12. }
  13. }
  14. })
  15. }