export default { doRequest(method, url, data) { // 如果data为空 if (!data) var data = [] var arr = [] arr.push(data) //我司项目需要验证state和openid,我登录后存在本地 var state = uni.getStorageSync('state'); var openid = uni.getStorageSync('openid'); arr[0].state = state;