Zimo пре 4 часа
родитељ
комит
0cab7206a9
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/config/axios/index.ts

+ 4 - 0
src/config/axios/index.ts

@@ -6,10 +6,14 @@ const { default_headers } = config
 
 const request = (option: any) => {
   const { headersType, headers, ...otherOption } = option
+
+  const langStore = JSON.parse(localStorage.getItem('lang') || '{}')
+
   return service({
     ...otherOption,
     headers: {
       'Content-Type': headersType || default_headers,
+      Lang: langStore.v,
       ...headers
     }
   })