全新UI视觉体验,移动端API优化降低重复调用,提高并发6倍,修复N多Bug

This commit is contained in:
stivepeim
2021-06-11 17:41:16 +08:00
parent 0b9f28fa52
commit b76840e10f
582 changed files with 35633 additions and 28276 deletions

View File

@@ -22,7 +22,6 @@ function baseRequest(url, method, data, {
if (params != undefined) {
header = HEADERPARAMS;
}
console.log('Url:',Url);
if (!noAuth) {
//登录过期自动登录
if (!store.state.app.token && !checkLogin()) {
@@ -32,9 +31,7 @@ function baseRequest(url, method, data, {
});
}
}
if (store.state.app.token) header[TOKENNAME] = store.state.app.token;
return new Promise((reslove, reject) => {
uni.request({
url: Url + '/api/front/' + url,