hejianhao
3 天以前 04e2948d80d575bb273363264de7d52219538331
H5/utils/request.js
@@ -17,9 +17,11 @@
      })
   }
   return new Promise(function (resolve, reject) {
   return new Promise(function(resolve, reject) {
      let token = uni.getStorageSync('token')
      token =
         'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOjE4OTU1MjI1Nzk1MDcwODEyMTgsInR5cGUiOjEsImV4cCI6MTc0Nzk4MzIyMiwiY3JlYXRlZCI6MTc0NjY4NzIyMjAxMX0.pmUfTkxkbBirDMbnMR1IaLsbSiiwHc366_yyAetCzTOWYxTNgmQlmvw26_W62NHLOebB_ZAEgZsPvkJcaLOoPg'
      uni.setStorageSync('token', token)
      let header = {
         'content-type': type ? 'application/x-www-form-urlencoded;charset=UTF-8' : 'application/json',
         'Authorization': token,
@@ -134,7 +136,7 @@
         title: '提示',
         content: str,
         showCancel: false,
         success: function (res) {
         success: function(res) {
            if (res.confirm) {
               // if (routeStr == 'pages/login/index') {
               //    uni.reLaunch({