h5/utils/service.js
@@ -15,7 +15,7 @@ uni.request({ url: baseUrl + options.url, data: options.data || {}, method: options.method || 'GET', method: options.method || 'POST', header: options.header || { // 根据实际接口设计 key 取 token 或者 authorization dm_user_token: token, @@ -37,10 +37,10 @@ if (data.code === 500 || data.code === 5112) { uni.clearStorageSync() return uni.navigateTo({ url: '/pages/login/login' url: '/pages/login' }) } return return resolve(data) } resolve(data) // return response.data