Commit b99c19a7 authored by “yiyousong”'s avatar “yiyousong”

fix:修改环境变量

parent f678957f
#开发环境 #开发环境
NODE_ENV = "development" NODE_ENV = "development"
VUE_APP_API_BASE_URL= http://192.168.0.98:11091/m #VUE_APP_BASE_API= http://192.168.0.98:11091/m
VUE_APP_BASE_API= /basics_api/m
...@@ -3,7 +3,6 @@ import axios from "axios"; ...@@ -3,7 +3,6 @@ import axios from "axios";
const JSONbig = require("json-bigint")({ storeAsString: true }); const JSONbig = require("json-bigint")({ storeAsString: true });
// import cookie from "./cookie"; // import cookie from "./cookie";
import httpErrorHandler from "./httpErrorHandler"; import httpErrorHandler from "./httpErrorHandler";
const instance = axios.create({ const instance = axios.create({
baseURL: process.env.VUE_APP_BASE_API, baseURL: process.env.VUE_APP_BASE_API,
headers: { headers: {
......
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
}, },
loginFail(error) { loginFail(error) {
this.$message.error(error.message || "请登录"); this.$message.error(error.message || "请登录");
console.log("<<", process.env.VUE_APP_BASE_API);
// window.location.href = // window.location.href =
// process.env.VUE_APP_PORTAL_URL == "undefined" // process.env.VUE_APP_PORTAL_URL == "undefined"
// ? "http://192.168.0.98:11072" // ? "http://192.168.0.98:11072"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment