一键登录调整优化

This commit is contained in:
唐明明
2021-10-20 11:03:30 +08:00
parent 9052c3001b
commit 660ed885d3
7 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ const config = {
let loginHintState = false
// 网络请求
const request = (parameter) => {
const request = (parameter, hideLoding) => {
// 检查url配置
if(parameter.url === 'undefined' || parameter.url === ''){
uni.showToast({
@@ -33,11 +33,11 @@ const request = (parameter) => {
'Authorization': store.getters.getToken || ''
}
// 加载提示
uni.showLoading({
if(!hideLoding) uni.showLoading({
title: '加载中',
mask : true
});
// console.log('debug', parameter)
// 请求实例
return new Promise((resolve, reject) => {
uni.request({

View File

@@ -40,7 +40,7 @@ const keyAuth = (data) => {
url: 'user/socialite/login/unicloud/app',
method: 'POST',
data: data
})
}, true)
}