Mr.Shi
2023-09-04 682182cf67a5aa9fed34335fea22d4673f30f10c
minipro_standard/util/request/requestInterceptors.js
@@ -4,8 +4,9 @@
 */
module.exports = (vm) => {
   uni.$u.http.interceptors.request.use((config) => { // 可使用async await 做异步操作
      console.log(config)
      config.header['Cookie'] = 'eva-auth-token=' + vm.$store.state.session
      if (vm.$store.state.session) {
         config.header['Cookie'] = 'eva-auth-token=' + vm.$store.state.session
      }
      uni.showLoading({ title: '请求中' });
      config.data = config.data || {}
      return config