Arvin.qi 6 years ago
parent
commit
bc4a4507b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/nuxtAxios.js

+ 1 - 1
plugins/nuxtAxios.js

@@ -17,7 +17,7 @@ export default function ({ $axios, redirect, req, ...args }) {
         }
         // stringify post data
         if (config.method === 'post') {
-            console.log(config);
+            console.log(config, req&& req);
             // config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
             const data = config.data;
             const cookie = config.headers.cookie || config.headers.common.cookie || '';