Arvin.qi 7 年之前
父節點
當前提交
ae9e913124
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/nuxtAxios.js

+ 1 - 1
plugins/nuxtAxios.js

@@ -18,7 +18,7 @@ export default function ({ $axios, redirect, req, ...args }) {
         // stringify post data
         if (config.method === 'post') {
             // config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
-            console.log(config.headers, config.url);
+            console.log(config.headers, config.url, req);
             const data = config.data;
             let formData = ''
             for(const key in data) {