Karsa 11 月之前
父節點
當前提交
1e45ec8b13
共有 1 個文件被更改,包括 3 次插入0 次删除
  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) => {