Karsa hai 11 meses
pai
achega
1e45ec8b13
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/api/http.js

+ 3 - 0
src/api/http.js

@@ -13,6 +13,9 @@ axios.interceptors.request.use(
     const uuid = localStorage.getItem("uuid") || "";
     config.headers.Uuid = uuid;
     config.headers.AccessToken = uuid + "--zheshiyigename";
+
+    config.headers.Lang = localStorage.getItem("i18n") || 'zh';
+
     return config;
   },
   (error) => {