miao33: 从 main 同步 single_uniapp22miao,dart-sass 兼容修复,DEPLOY.md 更新
- 从 main 获取 single_uniapp22miao 子项目 - dart-sass: /deep/ -> ::v-deep,calc 运算符加空格 - DEPLOY.md 采用 shccd159 版本(4 子项目架构说明) Made-with: Cursor
This commit is contained in:
15
single_uniapp22miao/utils/checkOverdue.js
Normal file
15
single_uniapp22miao/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