H5/utils/request.js
@@ -22,7 +22,7 @@ let token = uni.getStorageSync('token') let header = { 'content-type': type ? 'application/x-www-form-urlencoded;charset=UTF-8' : 'application/json', 'Authorization': 'Bearer ' + token, 'Authorization': token, 'lang': uni.getStorageSync('locale') === 'zh-Hans' ? 'zh_CN' : 'zh-tw', } const requestTask = uni.request({