pyt
2025-02-27 f260b38dd3420adbb0fa5669a176578b2dcc9cf4
H5/utils/request.js
@@ -17,12 +17,12 @@
      })
   }
   return new Promise(function(resolve, reject) {
   return new Promise(function (resolve, reject) {
      let token = uni.getStorageSync('token')
      let header = {
         'content-type': type ? 'application/x-www-form-urlencoded;charset=UTF-8' : 'application/json',
         'Authorization': token,
         'Authorization': 'Bearer ' + token,
         'lang': uni.getStorageSync('locale') === 'zh-Hans' ? 'zh_CN' : 'zh-tw',
      }
      const requestTask = uni.request({
@@ -134,7 +134,7 @@
         title: '提示',
         content: str,
         showCancel: false,
         success: function(res) {
         success: function (res) {
            if (res.confirm) {
               // if (routeStr == 'pages/login/index') {
               //    uni.reLaunch({