瀏覽代碼

log config

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

+ 1 - 0
plugins/nuxtAxios.js

@@ -17,6 +17,7 @@ export default function ({ $axios, redirect, req, ...args }) {
         }
         // stringify post data
         if (config.method === 'post') {
+            console.log(config);
             // 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 || '';