zzzz
2024-04-20 23ee33c45218f095dda375a43f7125062598336d
src/request/httpAxios.js
@@ -3,17 +3,14 @@
import { Toast } from "vant";
import i18n from "@/i18n";
import router from "@/router/router";
import { getSessionStorage } from "@/utils/utis";
import { signatureGenerate } from "@/utils/signatureUtil";
import { getStorage } from "@/utils/utis";
axios.defaults.headers.post["Content-Type"] =
  "application/x-www-form-urlencoded";
// let baseUrl = "https://stock.niveshnav.com/wap/";
let baseUrl = "http://192.168.0.105:18080/wap/";
if (getSessionStorage("tzlj")) {
  baseUrl = getSessionStorage("tzlj");
}
console.log(baseUrl);
let baseUrl = "https://stock.niveshnav.com/wap/";
// let baseUrl = "http://192.168.0.105:18080/wap/";
// 创建
const request = axios.create({
  baseURL: baseUrl,
@@ -48,6 +45,7 @@
    const { timestamp, signature } = signatureGenerate();
    if (timestamp) config.headers["tissuePaper"] = timestamp;
    if (signature) config.headers["sign"] = signature;
    config.headers["lang"] = getStorage("lang") || "en";
    return config;
  },
  (error) => {