sale-client 4.2.10 → 4.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,10 @@ var devConfig = {
51
51
  target: 'http://localhost:8080'
52
52
  },
53
53
  '/api/af-revenue': {
54
- target: serverRul
54
+ pathRewrite: {
55
+ '/api/af-revenue': '/af-revenue'
56
+ },
57
+ target: "http://localhost:8080"
55
58
  },
56
59
  '/api': {
57
60
  target: serverRul
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -86,6 +86,7 @@
86
86
  import UserPaperInfoTest from './UserPaperInfoTest'
87
87
  import {HttpResetClass} from 'vue-client'
88
88
  import * as Util from '../../Util'
89
+ import Vue from 'vue'
89
90
 
90
91
  let getConfigScope = async function (self, name) {
91
92
  try {
@@ -427,6 +428,10 @@ export default {
427
428
  xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
428
429
  }
429
430
  }
431
+ if (Vue.$login && Vue.$login.jwt) {
432
+ xhr.setRequestHeader('Authorization', 'Bearer ' + Vue.$login.jwtNew)
433
+ xhr.setRequestHeader('Token', Vue.$login.jwt)
434
+ }
430
435
  xhr.send(form)
431
436
  setTimeout(() => {
432
437
  this.load(this)