Browse Source

权限添加productId

zhouna 5 years ago
parent
commit
48700dc47e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/utils/ajax.js

+ 2 - 0
src/utils/ajax.js

@@ -15,11 +15,13 @@ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded
     const securityCode = getUrlArgObject("code");
     const appKeyId = getUrlArgObject("appI");
     const appKeySecret = getUrlArgObject("appS");
+    const productId = getUrlArgObject("productId");
     axios.interceptors.request.use(
         req => {
           req.headers.appKeyId = appKeyId;
           req.headers.appKeySecret = appKeySecret;
           req.headers.securityCode = securityCode;
+          req.headers.productId = productId;
             return req;
         },
         error => {