skyfffire 2 жил өмнө
parent
commit
63090d2a00
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      utils/axios.js

+ 4 - 2
utils/axios.js

@@ -14,8 +14,10 @@ axios.interceptors.request.use(
     let replacedStr = replaceAll(baseStr, splitStrList[splitStrList.length - 1], "")
     let authStr = md5(replacedStr)
 
-    config.data.timestamp = timestamp
-    config.data.auth = authStr
+    config.data.auth = {
+      timestamp: timestamp,
+      auth: authStr
+    }
 
     config.headers['content-type'] = 'application/json'