Arvin.qi vor 6 Jahren
Ursprung
Commit
bbc8990652
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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
         // stringify post data
         if (config.method === 'post') {
         if (config.method === 'post') {
+            console.log(config);
             // config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
             // config.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8';
             const data = config.data;
             const data = config.data;
             const cookie = config.headers.cookie || config.headers.common.cookie || '';
             const cookie = config.headers.cookie || config.headers.common.cookie || '';