Arvin.qi 6 лет назад
Родитель
Сommit
bc4a4507b9
1 измененных файлов с 1 добавлено и 1 удалено
  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 || '';